WordPress.org

Ready to get started?Download WordPress

Forums

category list (11 posts)

  1. ekrocker
    Member
    Posted 8 years ago #

    how can i list the categories on my main page like they are listed when you click on a post?

  2. moshu
    Member
    Posted 8 years ago #

    Which theme? Link?

  3. ekrocker
    Member
    Posted 8 years ago #

    In general... like on my sidebar if I wanted to list my categories and the xml feed for each category. how would i do that?

  4. moshu
    Member
    Posted 8 years ago #

    There is no "general" theme as far as I know...
    If you just want replicate what is in your sidebar - take a look at the code in your sidebar.php template file.

    Sorry, vague questions get vague responses.

  5. ekrocker
    Member
    Posted 8 years ago #

    I just want to list the categories on my sidebar. I went into my sidebar.php file and found code to list the category but it doesn't list them.

    I am using the this template --> http://www.noscope.com/fauna/

  6. moshu
    Member
    Posted 8 years ago #

    Are there posts in the categories? WP by default doesn't diplay "empty" categories.

  7. ekrocker
    Member
    Posted 8 years ago #

    there are posts in each category.

    if you were to go here --> http://www.everythingevan.com/?cat=1

    my categories are listed in the sidebar. i can not find the code anywhere in the sidebar.php file to cut and paste where i want it. any suggestions?

  8. moshu
    Member
    Posted 8 years ago #

    I don't know what files that theme has - but the template tag for showing categories has to be there somewhere in an if_statement...
    Anyway, you can use any of these template tags to get the categories listed:
    http://codex.wordpress.org/Template_Tags/list_cats
    http://codex.wordpress.org/Template_Tags/wp_list_cats

  9. Ajay
    Member
    Posted 8 years ago #

    More specifically

    <?php wp_list_cats('sort_column=name&optioncount=0&feed=RSS'); ?>

  10. ekrocker
    Member
    Posted 8 years ago #

    I am completely stumped. I put the code in my sidebar like Ajay provided and nothing is showing up. I checked the file and it is writeable, I even changed the local file I had and uploaded it... thinking that WP maybe wasn't saving it correctly.

  11. ekrocker
    Member
    Posted 8 years ago #

    I got it -- nevermind.

    Thanks guys

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.