Support » Fixing WordPress » Selected Category on home page

  • Is this possible?

    After reading “Building Communities with Drupal, phpBB and WordPress” (the only book I could find on WordPress) I’ve been playing around with the Filosofo Home-page control plug in and I’d like to use it in the following way.

    I have a home page set via the <home page plug-in> with a paragraph of text. Along with the text I’d like to display one post from each of the blogs categories on the front page. The posts would be abbreviated using the <more> tag so only about 20 words or so would be on the front page.

    I was thinking that if I set up my categories like this

    • <Home>
    • <Dogs>
    • <Cats>
    • <Fish>

    Then, when writing the post, one would select the main category (either Dogs, Cats or Fish) but you could also select if you want that particular post to appear on the home page by also selecting the <Home> category along with the main category. It seems like a nice and easy way of having a flexible, simple CMS.

    I imagine that you would just need a call that displays the <home> category’s posts within a <div></div> tag.

    How would one do this?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like you might be interested in this plugin.

    What I think I would do in your situation is make a home.php template file with the normal loop stuff, and use my home-page control plugin to make the home page content appear in that loop.

    Then I would add custom query_posts calls and loops for each category I want to appear, using the parameter “showposts=1” to limit the results to one each.

    Thanks for the info (as well as the killer plug-ins). I’ll give this a try and let you all know how it goes.

    Thanks! That did the job perfectly. I had the home-page plug-in activated so at first it didn’t work. I removed it and now it works exactly as I want.

    After reading the documentation on the Loop, I made a home.php file and took the category list off the side bar and by using the inline display selector, I’ve turned that into the Site Navigation on the left and did the same with the <Pages> list on the right of the header.

    I just have it set so the user can select which articles they want on the front page, and which one’s they only want to appear only on the Category pages.

    A nice simple, easy to learn CMS, suitable for many web sites!

    thanks again

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Selected Category on home page’ is closed to new replies.