Wordpress one pager: how to structure / posts or pages?

95 views Asked by At

Heyho,

I'm new to wordpress and currently building a website for a client. It's a one-pager and I'm wondering how to build the backend.

Let's say it's a cat-business. And the structure is as following:


  1. Haircutting
    • Baby Cat Haircutting
    • Long Hair Haircutting
    • Special Hair Cutting
  2. Photoshooting
    • Single Studio Photos
    • Group Studio Photos
    • Owner + Cat Studio Photos
    • Outside Photos
  3. Training
    • Faster Running
    • Higher Jumping
    • Better Mouse-Hunting
  4. News
  5. Contact

The categories 1—5 should form the Menu.

Every entry is (until now) a post and has several custom fields (e.g. Price, Duration, Location…) and that works fine. The Client needs to be able to edit / add / remove the single entries (e.g. "Special Hair Cutting").

How should I build it know?

First Idea

  • Making Pages for each category, showing the single posts assigned to the "wordpress category"
  • Make the Home-Page show all the pages

Second Idea

  • Building everything in Posts
  • Building also the categories 1—5 in Posts and figure out how to apply special CSS (workaround with Custom Fields?)

What is the smarter way to go? Anyways I'd need further help afterwards, linking the best tutorials, as hours and hours of searching didn't help me any further.

Thanks.

Appologies for my bad English

1

There are 1 answers

0
Mr. Hugo On

You can build a simple one-pager by looping through the pages with depth 1 and then through each of their subpages. You can use the get_pages function for this.

Make sure to redirect the individual pages to an anchor on your one-pager/home (with a redirect plugin). This will prevent people from finding your individual pages through the search engine.

How get_pages works: http://codex.wordpress.org/Function_Reference/get_pages

How to loop through your (sub)pages: http://wordpress.stackexchange.com/questions/93844/child-pages-loop‌​