• mikes02

    (@mikes02)


    I am new to building a site within WordPress, I have a couple of books I am working through, but I was wondering, on my home page I have a few sections where I would like the text to be editable through WP Admin as opposed to being hard coded into place, what is the best way to set this up and pull in the header/content for each section? Should each section be a page?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mikes02

    (@mikes02)

    bump for the day.

    vtxyzzy

    (@vtxyzzy)

    The answer somewhat depends on your theme and how the menu is structured. You probably don’t want the section posts/pages to show up in the menu.

    Either Posts or Pages can be used to do what you describe. I have a site where other users maintain some of the content of the Home page. I set that up with Posts in certain categories because I do not show a Categories menu.

    For example, I have a President’s Message section where I pull in the latest post in that category. Our club president can go to the site and create a new Post with that category and it automatically shows up on the Home page. If you use Pages, the Page must be updated instead of adding a new Page.

    The key to doing this with either Posts or Pages is to use multiple loops on a static Home page. See the Codex here for info on multiple loops.

    Also, look at using get_posts() so you don’t interfere with the main loop.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to pull content into home page section?’ is closed to new replies.