Support » Plugin: Ninja Pages » [Plugin: Ninja Page Categories and Tags] Updating Issues

  • Resolved broadwaysbestshows


    Hi there,

    First off – love this plugin – it’s been working great for us in designing the various sections of our website using categories. I noticed however, that after our recent update, the plugin no longer connected accurately with out theme’s blog feed system. While page categories still worked correctly for other plugins (ie: Special Recent Posts PRO), a theme-based category display feed stopped successfully finding pages attached to categories we are using. I’ve reverted back to the 3.1 version of the plugin and everything works perfectly again, just wanted to give a heads up about the issue. We are using the Kriesi ‘Shoutbox’ Theme design – not exactly sure where the issues originating from.

    Page example where issue was occuring:


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author James Laws


    Thanks for the heads up. I’m not really sure what might be happening and I don’t have access to that theme to really properly test where the conflict might be. I know what changed in the plugin that might have caused it but not sure what the theme is doing differently from other themes that might be the issue.

    If you wanted to send me a copy of the theme to james[at]wpninjas[dot]net I’d be happy to see if I can see what’s going on and fix it in the plugin if possible.

    Plugin Author James Laws


    I think I know exactly where the issue is but not sure there is an easy way to fix it.

    It has to so with the way the theme author chose to handle their dynamic templates and the loops that are used in them. Basically they are create a brand new query for those dynamic templates.

    In versions 1.3.1 and prior I was wrongly high-jacking all queries and altering them which was causing some very undesirable issues for many users. In version 1.3.2 I started checking to see if it was the main query and still only adding pages to the query if it was a category or tag archive, which was the intent of the feature.

    Since is actually a page with a custom built query I have no way to account for that in my public plugin without simply modifying all queries.

    That being said, if all you are doing is pulling pages in the above page you can change one line of code in the theme and it would make it work even with the current version of the plugin. On line 243 of includes/helper-templates.php change:

    $avia_config['new_query'] .= '&cat='.$dynamic_blog_cats;


    $avia_config['new_query'] .= 'post_type="page"&cat='.$dynamic_blog_cats;

    And you should get the desired result moving forward. Of course if you ever update the theme you will need to make that change again.

    I hope that helps.

    Hi James,

    I tried adjusting the code as advised above and updating the plugin, however the page did not successfully find any pages associated with the category being called in the template. I’ve returned us back to the previous version of the plugin, but kept the theme code updated with the adjustment you suggested above incase you had any other possible solutions.

    Plugin Author James Laws


    That’s exactly how I did it with the copy of the theme you provided so I’m not sure what other plugins or code you might have on the site that could be interfering.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Ninja Page Categories and Tags] Updating Issues’ is closed to new replies.