Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Alfred K

    (@alfredk)

    Orr Active class to the li

    Thanks

    Plugin Author jeff.cave

    (@jeffcave)

    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?

    Thread Starter Alfred K

    (@alfredk)

    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 🙂

    Plugin Author jeff.cave

    (@jeffcave)

    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…

    Thread Starter Alfred K

    (@alfredk)

    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&#8217;. I couldn’t print 3rd level links so thats when I started to use your plugin. I’ll keep testing it out!!

    Thanks again

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add current_page_item’ is closed to new replies.