WordPress.org

Ready to get started?Download WordPress

Forums

Specific CMS Question (5 posts)

  1. RobertPaulson
    Member
    Posted 7 years ago #

    I tried to search for a relevant discussion on this, but couldn't find anything (but I'm thinking someone else has though of this before) - so if there is a tutorial, plugin, existing theme or discussion about this, I thank you in advance for pointing me in that direction.

    I'm wanting to build a non-blog site and use WordPress as the CMS. The primary thing I need direction on is how to attack my needs for the index page. Rather than having a single (or multiple) complete (or excerpted) posts displayed strictly by chronology, I'm wanting instead to have excerpts from only the most recent post from each category displayed. "The Latest From X Category", "The Latest From Y Category" and so on.

    My uncertainty comes from my lack of php coding skill, wondering how I can pull that category-specific data from each category to the index page.

    Thanks in advance for any help you can provide.

  2. dollars5
    Member
    Posted 7 years ago #

    I dunno whether there is a ready made module for your needs - but I guess if you iterate through the categories id and get the latest post - you can do it. But it will require a bit of coding on the index.php.

  3. Joni
    Member
    Posted 7 years ago #

    Alex King has a plugin called Articles which allows you to selectively mark entries for inclusion on the front page or any wordpress page.

    They are at work here, on my personal blog, as a separate page. I did not specifically add the category titles, the plugin does that for you:

    http://joniverse.com/best/

    And I've done something similar with this plugin on the front page of my web design site .. selecting only certain articles to appear on the front page under "What's New."

    The downside to this plugin is that you can only use it once. I tried to create another page for portfolio items and do something similar to the joniverse.com page, but since it was already in use on the front page I could not.

    http://www.pixelita.com/index.php

    But this plugin is a good start, I believe. You can find it here:

    http://alexking.org/projects/wordpress

    You might also think about some of David Chait's category calling plugins and I believe some other folks have created plugins that call only specifica categories. Check out the plugins repository (found here under the "Extend" link) to see if something else might work.

    But for ease of use and a one shot deal, Articles is the best IMHO.

  4. moshu
    Member
    Posted 7 years ago #

    If you don't have to "hand pick" the posts displayed on the main/home page, just want the latest posts by category - Kaf has a home template by category:
    http://wordpress.org/support/topic/38046?replies=53
    Note. This uses the home.php template which will take precedence over your index.php in every case.
    More: http://codex.wordpress.org/Template_Hierarchy

  5. RobertPaulson
    Member
    Posted 7 years ago #

    Thanks for all the replies - Moshu, I think your suggestion is going to do the trick for me. Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic