ilanio
Forum Replies Created
-
Hi @alexandrubodea,
I think we can rule out Elementor, because the behavior is the same without it. I did a basic search with the “?s=query” parameter in the URL, and you can see the results: https://snipboard.io/HRcq8n.jpgAs you can see, the “Calendar for Registrars” page, which should be hidden completely, appears with a message “You must be logged in to view this content”. Here are the screens from the Profile Builder pages you requested: https://snipboard.io/yW72LP.jpg and https://snipboard.io/ehlYSq.jpg
However, I think I found the problem. Line 695 of profile-builder/features/content-restriction/content-restriction-filtering.php is the following:$args[‘posts_per_page’] = get_option( ‘posts_per_page’ );
In this case, posts_per_page is 10. But we have almost 200 pages in our system. And only the first 10 are being used to augment “post__not_in”, which excludes the restricted posts. As a result, “post__not_in” never includes the pages that are further down on the list. If we change that line to:
$args[‘posts_per_page’] = -1 ;…then it seems to work well (screenshot: https://snipboard.io/zB5TXG.jpg). I’m not sure if this breaks anything else, but I don’t see why it should. After all, it just means we are constructing a more complete list of the pages to be excluded.
What do you think?
Thanks,Ilana 🙂
Hi @alexandrubodea and thanks for the speedy reply!
Glad to hear that the free version does what I’m looking for.
I’m using Elementor for the search widget and I’ve also got Ivory Search. However, the behavior is the same even with Ivory Search deactivated.
Thanks!
Forum: Plugins
In reply to: [Send Emails with Mandrill] isTemplateValid() should check slugs tooOK great, I just submitted the pull request (first time for me — let me know if I did it wrong!)
Ilan 🙂