• I have a page which uses the list_all_categories command to create a dropdown of all categories on the blog. In that same horizontal that contains the dropdown, I’d like to create a menu item that is not a dropdown and that simply goes to a specific category. How is this done?

Viewing 4 replies - 1 through 4 (of 4 total)
  • edit the theme file. add the link? does that not work?

    Thread Starter godhead

    (@godhead)

    In that particular milieu I have no idea how to add an item. All the items are already listed as “list_all_categories” and “list_all_pages”. As there are no individually listed entries, I don’t know the syntax for doing so.

    list_all_categories

    im missing where thats a wordpress function. same with list_all_pages

    neither of those are wordpress code. so ..

    1. whats the url to your web site?
    2. whats really inside the theme?
    3. do you know how to view your source using your browser?

    Thread Starter godhead

    (@godhead)

    Disregard last post. I remember now.

    • calls up individual entries. The only question is how to call up the category.
    • Here we go:

      <ul>
      			<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" class="stuff" title="Home">Home</a></li>
      			<li><a href="<?php echo get_settings('home'); ?>" class="stuff">Articles</a>
      				<ul><?php wp_list_categories('sort_column=name&title_li=&depth=2'); ?></ul>
      			</li>
      			<?php wp_list_pages('title_li=&depth=2');?>
      			</ul>

      As you can see, there is one for “home”, one for all categories, and one for all pages. How do I just call up a specific category?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What is the WordPress command to link to a single category?’ is closed to new replies.