Hi @ieio, I am sorry our plugin is causing this issue on your site. It’s not immediately clear to me what could be the cause. But in your video, those posts that we are seeing where the number changes after our plugin is installed, are they blog posts or a custom post type?
Also after activating our plugin have you tried updating the permalinks on your site? So go to Settings > Permalinks and then just click the save button, this sometimes solves issues shown on your video as silly as it might sound.
If there’s any other information that you think might be relevant, please let me know. Thanks,
Thread Starter
ieio
(@ieio)
Thanks for the quick reply, I sincerely appreciate it.
To answer your question: they are standard WordPress blog posts, not a custom post type.
I already tried the permalink reset but unfortunately it didn’t solve the issue.
Could it be related to how IdeaPush registers its CPT on activation? My suspicion is that it might be altering a global WordPress query (like pre_get_posts) in a way that affects the post count on the “All” filter. The individual category counts remain correct — only the “All” count drops to zero.
Best regards
Hi @ieio,
Would you be able to try and remove a couple of lines of code from our plugin and see if this impacts things?
Please remove line 1161 from ideapush.php (main parent plugin file) which looks like this:
$query->set( ‘tax_query’, $tax_query );
And lines 1072 and 1073 from the same file which look like:
$query->set( ‘meta_key’, ‘votes’ );
$query->set( ‘orderby’, ‘meta_value_num’ );
Thanks
Thread Starter
ieio
(@ieio)
thank you and sorry for delay.
I commented out those lines, deactivated IdeaPush, cleared all caches, reactivated your plugin but no changes