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

  1. bkernan
    Posted 5 years ago #


    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!


  2. Dennis Hoppe
    Plugin Author

    Posted 5 years ago #


    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
    Posted 5 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:

    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
    Posted 5 years ago #

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

  5. bkernan
    Posted 5 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


  6. Dennis Hoppe
    Plugin Author

    Posted 5 years ago #

    Cool. Thanks for posting the solution. :)

  7. keiney
    Posted 5 years ago #


    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


  8. Dennis Hoppe
    Plugin Author

    Posted 5 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
    Posted 4 years ago #

    Big Thank, ^^

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic