Orr Active class to the li
Thanks
Not currently.
That’s the second request for displaying the current page. I’ve been a little slow to respond to this feature (busy with new job).
I’m actually having a little trouble figuring out how to integrate this feature. This plugin was developed to *not* show the current page (something a lot of similar plugins lacked). Can you confirm the usage:
Scenario:
1. Show siblings “on”
2. Highlight currently active page <– new feature?
Hey Jeff,
Yeah I’m using the plugin by printing it in the sidebar. It’s simple which is great and it’s doing what we wanted it to besides highlighting the active/current_page_item when its on the sibling page. If there is anything I can do to help you with this let me know. I’ve been poking around as well looking for a fix.
Thanks again 🙂
I’m having trouble testing it, mostly because I borked my DB, but I’m making a change to ‘psSubPages.class.php’:line 92-93
$styleCurPage = (get_queried_object_id() === $page->ID)?'current_page_item':'';
echo "<li class='${styleCurPage}'><a href='".get_permalink($page->ID)."'>".get_the_title($page->ID)."</a></li>";
It will probably be Sunday before I get it tested. If you want to try the change yourself…
Hey Jeff.
Thanks for the time. DB problems are never fun!. It seems to be working which is great. I was using the WP_list_pages function that kinda worked form here ‘http://codex.ww.wp.xz.cn/Function_Reference/wp_list_pages’. I couldn’t print 3rd level links so thats when I started to use your plugin. I’ll keep testing it out!!
Thanks again