28 June 2013

Create a WordPress Single Page Website

Here’s a simple way to create a WordPress one pager with individual pages outputted as list items and ordered using WordPress’s page order option. For the menu, simply set up your menu items as custom links with each URL set to #your-page's-name.

The args:

The loop:

Lastly, a bit of jQuery:

To get back to the top, just add an id to your body tag e.g. body id="thetop" and get back to it with a link a href="#thetop".