canrangou
Forum Replies Created
-
Hi Daniel,
Thanks for your reply.
Actually I took a closer look at it yesterday and found out the reason:
In load-popups.php, function popmake_preload_popups:
$query = new WP_Query( array( 'post_type' => 'popup', 'posts_per_page' => - 1 ) );Somehow on search page it’s returning some random posts which are not popup type and of course cannot be loaded, while it’s returning correct popup posts on other pages.
I added
'suppress_filters' => truein WP_Query and now it’s working properly. It’s just a workaround and I’m still digging if the filter added to WP_Query is from your plugin or other plugins.Thanks again.
Canran
Hi Daniel,
Any update on this issue?
Today I tried to dump the filters applied on pages that work and didn’t work, and found that on search results page, the “pum_popup_is_loadable” filter was not applied.
Since I plan to use the popup cross the whole website, is there any way/hook I can use to force the popups being loadable on any pages?
Thanks and looking forward to your reply.
Canran
Hi Danieliser,
Thank you!
It makes sense, this page has always been kind of ‘special’ for me since sometimes it seems to override some default templates/views so not perfectly functioning. I think you are right, they might have their own way to determine the page.
So basically I will just wait? Thanks for your fast support!
Hi Walter,
Thanks for your quick reply!
I never touched the conditions and it’s blank. From the documentation I can see leaving it blank means enable it on all pages right? So this might not be the problem?
Thanks again for your quick support!