npnlee85
Forum Replies Created
-
Forum: Plugins
In reply to: [WP News and Scrolling Widgets] Plugin Breaks Tag FiltersI can confirm this code fixes my case. I will look forward to the update. Thank you for looking into it!
Forum: Plugins
In reply to: [WP News and Scrolling Widgets] Plugin Breaks Tag FiltersYes, the name of the plugin I tested this with is “Shared Files”. I believe the same problem can be observed with the “Download Manager” plugin. Links below. I gave a detailed steps to reproduce in one of my earlier posts.
https://www.ads-software.com/plugins/shared-files/
https://www.ads-software.com/plugins/download-manager/I think even using the code I posted above, the plugin has a problem. I had to disable that function completely for things to work. After doing that the other plugins work fine, and so do the ‘news’ page tags, so I wonder if this function is necessary.
Happy to provide more info if it will help you fix this bug.
Forum: Plugins
In reply to: [WP News and Scrolling Widgets] Plugin Breaks Tag FiltersI’m trying to report a bug to you so you can fix your plugin. It’s not just Shared Files, ANY plugin that uses a custom post type is broken by your module because wpnw_display_news_tag function overwrites the post_type value in the query. I tried the code below, which allows the page in the first screen shot to load filtered posts, but I’m not good enough at WordPress to fix the “Invalid post type” message.
function wpnw_display_news_tags( $query ) { if( is_tag() && $query->is_main_query() ) { $post_types = array('post',WPNW_POST_TYPE); if(array_key_exists("post_type",$query->query) && !empty($query->query['post_type'])){ if(is_array($query->query['post_type'])){ $post_types = array_merge($post_types,$query->query['post_type']); }else{ $post_types[] = $query->query['post_type']; } } $query->set( 'post_type', $post_types ); } }
Forum: Plugins
In reply to: [WP News and Scrolling Widgets] Plugin Breaks Tag FiltersI cant share the site because it’s behind the admin console on development site. Here’s some screen shots.