WordPress.org

Ready to get started?Download WordPress

Forums

Need to add seperate categories (2 posts)

  1. szahra
    Member
    Posted 6 years ago #

    Hi, I need to have a category list with things related to my blog, and another seperate category list with for example general interest. Can anyone tell me how it is possible in WordPress?
    Here is an example:

    <h2>Design Category</h2>
    <ul><li>graphic</li>
    <li>web</li>
    <li>interface design</li>
    </ul>
    
    <h2>General Interest Category</h2>
    <ul><li>cool websites</li>
    <li>Resources</li>
    </ul>

    I tried looking for a plugin but I didn't find any.

  2. lorenzo
    Member
    Posted 6 years ago #

    have a look at his document:
    http://codex.wordpress.org/Function_Reference/get_categories

    assuming that the categories are already in wordpress this will do the trick:
    note that parameters has to be changed for your setup

    <h2>Design Category</h2>
    <ul>
    <li><?php $categories = get_categories(parameters); ?> </li>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags