is_page not working for “posts” page
-
I am having an issue getting my current_page_item class to apply to my “posts” page.
It is working correctly with all my other pages.
Perhaps it has something to do with the fact that I made my front page a static page and my posts page secondary?
here is the code (the posts page is called “news”)
<div id=”mainmenu”>
<li class=”menu_item menu_studio <?php if (is_page(‘studio’)) { echo “current_page_item”; }?>”>
<li class=”menu_item menu_news <?php if (is_page(‘news’)) { echo “current_page_item”; }?>”>
<li class=”menu_item menu_biocv <?php if (is_page(‘bio_cv’)) { echo “current_page_item”; }?>”>
</div>I tried for a while to echo the current page as text in the html so I could correctly identify the “posts” page. Was not successful.
I am very very new to wordpress and any help would be greatly appreciated.
THANKS!
– J
- The topic ‘is_page not working for “posts” page’ is closed to new replies.