WordPress.org

Ready to get started?Download WordPress

Forums

Sub Page Navigation Widget
[resolved] Missing Sub Pages (9 posts)

  1. bkernan
    Member
    Posted 3 years ago #

    Hello,

    I am going to dive into the plugin to try to debug this.

    I have 6 subpages and only 4 are showing up. There is no difference between the status/parent/etc. of the subpages. So I'm not sure what could be tripping the widget from querying these?

    Let me know if you would like anymore info on this. I'll post what I find out.

    Thanks for your time!

    http://wordpress.org/extend/plugins/sub-page-navigation-widget/

  2. Dennis Hoppe
    Member
    Plugin Author

    Posted 3 years ago #

    Hi!

    The Widget uses the WP_Query Class to catch the sub pages. So if you use any plugin which modifies the query it could result in missing pages in the sub page navigation. ;)

    Try to deactivate the other plugins to find out any incompatibilities.

  3. bkernan
    Member
    Posted 3 years ago #

    Hi Dennis,

    Thanks for the super fast reply!

    I did deactivate all of my plugins and that did not solve my issue.

    My theme has lot's of features that may interfere. It's a new free one:
    http://wordpress.org/extend/themes/minimatica

    I'm going to look into that now.

    Also, in widget-sub-page-navigation.php right after the first WP_Query navigation object is created and populated, I echo out the post-count property and there it says 4 (even though it should be 6). Wouldn't it print out 6 here, then be changed to 4 by some additional filter? Just curious (I'm certainly no WP engine guru).

  4. bkernan
    Member
    Posted 3 years ago #

    BTW it's definitely this theme, there is some Widget manipulation in the funtions.php I'm looking into now.

  5. bkernan
    Member
    Posted 3 years ago #

    Found it! Hopefully this helps someone using the Minimatica Theme and this plugin.

    Line 144, function minimatica_paged_posts in functions.php
    change this value '4' to '-1'
    $query->set( 'posts_per_page', '-1' );

    No need to me to limit my posts to 4

    Thanks!

  6. Dennis Hoppe
    Member
    Plugin Author

    Posted 3 years ago #

    Cool. Thanks for posting the solution. :)

  7. keiney
    Member
    Posted 2 years ago #

    hi

    I have set up the sub nav in the sidebar and can add a child page and the nav updates and works correctly.

    My question is how to set the active link to the current page/link etc

    regards

  8. Dennis Hoppe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Keiney, the <li> with the current page gets always the 'current-post' class. You can use it to format it.

  9. usran
    Member
    Posted 2 years ago #

    Big Thank, ^^

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic