WordPress.org

Forums

Ninja Page Categories and Tags
[resolved] Updating Issues (5 posts)

  1. broadwaysbestshows
    Member
    Posted 2 years ago #

    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:
    http://broadwaysbestshows.com/past/

    Best,
    Andy
    http://broadwaysbestshows.com

    http://wordpress.org/extend/plugins/ninja-page-categories-and-tags/

  2. James Laws
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    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.

  3. James Laws
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    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 http://broadwaysbestshows.com/past/ 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;

    to

    $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.

  4. broadwaysbestshows
    Member
    Posted 2 years ago #

    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.

  5. James Laws
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.