• Resolved bkernan

    (@bkernan)


    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://ww.wp.xz.cn/extend/plugins/sub-page-navigation-widget/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dennis

    (@dhoppe)

    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.

    Thread Starter bkernan

    (@bkernan)

    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://ww.wp.xz.cn/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).

    Thread Starter bkernan

    (@bkernan)

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

    Thread Starter bkernan

    (@bkernan)

    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!

    Plugin Author Dennis

    (@dhoppe)

    Cool. Thanks for posting the solution. 🙂

    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

    Plugin Author Dennis

    (@dhoppe)

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

    Big Thank, ^^

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

The topic ‘[Plugin: Sub Page Navigation Widget] Missing Sub Pages’ is closed to new replies.