WordPress.org

Ready to get started?Download WordPress

Forums

how to get "home >> category" on top of archive (3 posts)

  1. MisterX
    Member
    Posted 10 years ago #

    I'm trying to get menus like that for the top of the page:
    home >> category_name and home >> month for both my monthly and cat archives
    I'm using a <?php if (!$cat) { echo etc... conditional to have it show up but I can't get the condition for monthly archives right. I tried if ($m And !$p) but that doesn't work. I'm not quite clear of the variables and their values at this point... :(
    Also, how would I get the name of the month/category? the_category will return all the categories related to the posts that are in the single category selected. I would like it to show only the one "main" cat selected in archive.
    I hope I'm making sense ;)

  2. MisterX
    Member
    Posted 10 years ago #

    as I was asking this question, I just realized I could use <?php wp_title(); ?> to achieve what I was trying to get. Not perfect, but pretty close! :) Sorry for useless thread!

  3. NuclearMoose
    Member
    Posted 10 years ago #

    Mister X,
    The navigation you are describing is commonly referred to as "breadcrumbs." Maybe somebody else has a solution as well and will post it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.