• hi all,

    how can i get current menu item name in category.php? is there any WordPress function available for this?

    any help will be highly appreciated.

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • okay, you said anyone. Do you mean you want a category page to have it’s menu link highlited when current?

    Thread Starter snaroliya

    (@snaroliya)

    thanks for a reply, i want to show the current menu item name as a heading in category.php page, like when the selected menu item say Shopping, i want to show Shopping as a heading in the category.php page like that…

    Maybe I’m still not following , doesn’t the category page say something like

    Category Archives: Shopping

    at the top of the category page?

    in twenty ten the code looks like this:

    <h1 class="page-title"><?php
    					printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    				?></h1>

    Thread Starter snaroliya

    (@snaroliya)

    Yes, got it, thanks a lot!

    cool, then I understood what you meant. I count that alone as a victory.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress current / active menu item name’ is closed to new replies.