• Resolved sbcea

    (@sbcea)


    I’m hoping someone can point me in the right direction. I’m looking to create a custom homepage that contains two or more lists of posts. These would each be in different numbers and possibly from different categories.

    For example, I may want to have the following:

    First, display the most recent 3 posts with title, excerpt and some other information. Similar to how things are listed on my homepage now (http://www.stephenbailey.com)

    Under that may be title, excerpt and some other information from a number of posts from say the music category only.

    Under that may be title only from a certain number of posts from every category, excluding the posts that were featured above.

    Is this possible? And could I add lists to maybe include other categories?

    Thanks,
    Stephen

Viewing 6 replies - 1 through 6 (of 6 total)
  • See if my tutorial helps…

    Thread Starter sbcea

    (@sbcea)

    Thanks, I’ll check it out.

    Thread Starter sbcea

    (@sbcea)

    Thanks so much. Just ran a couple of tests, and this looks like just what I needed.

    I did notice one problem in your snippet. When I used this:
    <?php query_posts(‘category_name=news&amp;showposts=5’); ?>

    It did not show the correct number of posts. I changed it to:
    <?php query_posts(‘category_name=news&showposts=5’); ?>

    …and it worked fine.

    Thanks again,
    Stephen

    Oops, that’s a mess that, probably, occured during my big move. Thanks for letting me know. Corrected.

    Thread Starter sbcea

    (@sbcea)

    No problem. Your tutorial is helping me greatly. I do have one other question. Is there an easy way to list all but one category?

    Take a look at my test page (it’s a bit of a mess. I’m still working on the layout). http://www.stephenbailey.com/test-page/

    In the box under “Featured Posts” I’d like to simply exclude the category called ‘updates’. Right now I’m using the following to list posts from all categories:

    <?php query_posts(‘showposts=6’); ?>

    Any advice?

    Thread Starter sbcea

    (@sbcea)

    Hey, I figured it out.

    <?php query_posts(‘showposts=6&cat=-13’); ?>

    Did the trick.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customized Lists on a Static Homepage’ is closed to new replies.