Hi.
Ok yes, there is an error here. We will launch the new version the next week with this correction.
For the moment, you can solve it with this code:
<?php
function timersys_remove_popups_from_loop($remove, $popups) {
$YOUR_POPUP = 798;
if( ! isset( $_POST['url'] ) || ! isset( $_POST['query_string'] ) )
return $remove;
$query_url = parse_url( $_POST['url'], PHP_URL_QUERY );
if( $query_url == false || empty($query_url) )
return $remove;
parse_str($query_url, $vars);
if( isset( $vars['wppopups_preview'] ) && $vars['wppopups_preview'] == 'popup' &&
isset( $vars['popup_id'] ) && $vars['popup_id'] == $YOUR_POPUP
) {
$pos = array_search($YOUR_POPUP, $remove);
if( $pos !== FALSE ) unset($remove[$pos]);
}
return $remove;
}
add_filter('wppopups_remove_popups_from_loop', 'timersys_remove_popups_from_loop', 10, 2);
You must put your Popups ID in $YOUR_POPUP variable
Regards
-
This reply was modified 6 years, 3 months ago by
gonzalesc.
Plugin Author
Damian
(@timersys)
new version launched with a fix
I just updated and got basically the same error, minus that ID number.
“This is a preview of your popup. This page is not publicly accessible.”
Plugin Author
Damian
(@timersys)
That is not an error, it just saying that the page is for preview but the popup should show.
Could you share the preview url so I can check?
Just updated to the plugin released today…
Now receiving this message..
This is a preview of your popup. This page is not publicly accessible.
Looks like this is the same message as previously reported in this thread.
Plugin Author
Damian
(@timersys)
Could you try something for me? Go to Settings -> Permalinks in your wp-admin to refresh your site permalinks and let me know if that does the trick
Plugin Author
Damian
(@timersys)
Sorry I missunderstood . the message “This is a preview of your popup. This page is not publicly accessible.” it’s normal. You should see the popup on that page.
Hello!
I just bought and installed the plugin, and unfortunately there is no preview (message is the same as previously stated here: “This is a preview of your popup. This page is not publicly accessible.”) but there is no popup. And when I open the webpage there is also no popup at all. It should be triggered by the exit intent, or after 10 second on the page. But now nothing happens (popup is set up and active). Could you please help? Thank you in advance!
My preview link:
https://legacyofthracksboardgame.com/wppopups-preview/?wppopups_preview=popup&popup_id=1097
Plugin Author
Damian
(@timersys)
Hi @sveda88,
if you purchased the popup please open a support ticket here to get priority support.
I don’t see the popup plugin enabled in https://legacyofthracksboardgame.com/