what code is the menu using?
what are you expecting your code to do?
I read the code this way:
if you have a page with the ID 36 in your site, then output the text.
Okay, so basically, the nav bar looks like it’s using wp_nav_menu, but im not positive. What I do know is that it is dynamically generating the pages in the nav bar:
<?php if ( function_exists('wp_nav_menu') ):?>
<?php wp_nav_menu( array( 'show_home' => 'Home','container' => 'globalNavi', 'theme_location' => 'primary') ); ?>
<?php else: ?>
<?php wp_page_menu( array( 'show_home' => 'Home', 'sort_column' => 'menu_order' ) ); ?>
<?php endif; ?>
The problem right now is that I need it to use current_page_item on a post. I want it to check what category the post is, figure out which page id that translates to, and then highlight the page in the nav bar with current_page_item.
Because basically, I have different pages that have feeds of different categories. If I am on the category ‘Phones’ and click a post from within the category or the page, I still need the corresponding page highlighted on the nav bar.