• Hi,

    I’m doing my absolute best to use WordPress as a conventional CMS because it has so many good features and plugins that it seems crazy not to.

    However, I’m going crazy trying to do some really basic stuff. The issues I have are:

    – I want to display the posts of a category in my index template. In other words, I’m in category x therefore posts in category x are shown, if I was in category y, then posts from category y would be shown.

    – I also need to do some formatting of navigation, so, active categories and posts need to be highlighted with a class.

    – Lastly, I need to order the posts by date so that changing the date of a post in admin will change the order posts are listed.

    Can anyone help me or point me in the right direction? I’ve read the wp documentation throughly and I can find nothing apart from a few plugins that don’t do what I need.

    Cat-posts 1.0 has been the first one that came close, but is not there yet and, although I’m learning PHP as fast as I can, I’ve tried modding this plugin without success…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Osu

    (@mrnabo)

    Am I right in thinking that WordPress is a waste of time as a more conventional CMS?

    I get the impression that either this forum is dead, no-one knows how to use it in this capacity (which goes against what this site lists here: ‘kick-ass examples of WordPress being used as a CMS’: http://codex.wordpress.org/User:Matt/WP_as_CMS), or alturism/helping people with this type of topic has ground to a halt.

    As you can tell, I’m fairly desperate to use WP as a CMS as I was under the understanding it has the potential. It fits the bill perfectly in many other respects, but someone please tell me if I’m wasting my time.

    With that combination of patience and winning personality you’re sure to get TONS of free help from the WP community.

    I second DreDub38’s opinion… Patience is the keyword, if you want help!

    For obvious things, like changing the timestamp – people are reluctant to answer because that’s in your own admin panel, you just have to get familiar with it.
    Posts are ALWAYS ordered by date, so what is the 3rd question?

    Next: – I want to display the posts of a category in my index template. In other words, I’m in category x therefore posts in category x are shown, if I was in category y, then posts from category y would be shown.
    That’s two different questions.
    1. You can exclude any category from being displayed on your index (aka main/front/home) page.
    Top of this page > Extend > Plugins: search for “excluder”
    2. However, dislaying different categories on the index template – is not how WP works. Categories are displayed on their own templates.
    Get familiar with WP’s inner working: Template_Hierarchy and Category_Templates.

    Highlighting and class.
    WP does add classes to the active Pages and categories. Just study the source code of the output – and style them properly.
    More in the Codex:
    Dynamic_Menu_Highlighting

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need to display category posts in template’ is closed to new replies.