WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to show just ONE category (5 posts)

  1. Red Deer Web Design
    Member
    Posted 3 years ago #

    I have been trying different WP_Query w/ category things, but they don't seem to work....

    I am placing these in a category.php with the category "filter" for each category different so I can design different layouts for each category. It isn't reading any of the queries though and instead edits the same format for ALL the categories.

    Could someone provide me with a very simple piece of code that I can copy paste just to get the "filter" working. From there I can input the rest of my changes.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Why are you adding custom queries to your category templates?

  3. Red Deer Web Design
    Member
    Posted 3 years ago #

    Well perhaps I am going about it all wrong. Here is the situation:

    On my website I have 3 buttons, each for a different category. One category displays a list of titles, while another button/category displays the excerpts + title. Thus this second category must have a different formatting....

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Have a look at Category_Templates.

  5. Red Deer Web Design
    Member
    Posted 3 years ago #

    Perfect! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags