Support » Themes and Templates » how to get “home >> category” on top of archive

  • 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 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to get “home >> category” on top of archive’ is closed to new replies.