WordPress.org

Ready to get started?Download WordPress

Forums

displaying category on page (5 posts)

  1. webmachiavelli
    Member
    Posted 6 years ago #

    I've been reading and thus far I haven't come across the answer I'm hoping for so if I'm missing this obvious answer some where around here I apologize in advance.

    I just installed wordpress on my domain. After I installed it I started giving some thought to how I wanted to layout things. One issue that seems to have me stumped at this point is that I want to feature one category on a secondary page. Now I know I could just create a link to that category and the page will be generated by the theme. Which would be all fine and dandy if I didn't want to insert some info just under the navigation bar that may or may not change until I no longer want to feature that category.

    So any suggestions on what is the best way to handle this?

    WP 2.5.1
    Blixed-10

  2. webmachiavelli
    Member
    Posted 6 years ago #

    BTW I'll still be searching the forums until someone either answers this or I find it.

  3. webmachiavelli
    Member
    Posted 6 years ago #

    Bump since I'm not on the first page

  4. iridiax
    Member
    Posted 6 years ago #

    A couple of options:

    Make a copy of your theme's category.php (or archive.php if you don't have a category.php) and name it category-44.php (change 44 to the category ID number of your category). Add your code to category-44.php.

    Another option is to use the is_category('44') conditional tag on category.php or archive.php to only display this code for your chosen category.

  5. destos
    Member
    Posted 6 years ago #

    I posted a reply here on why this question is commonly misconceived.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags