Do not want so show password protected posts

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Do not want so show password protected posts

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36966
    frankie68
    frankie68
    Participant

    Hello
    In the ‘Search Instance – NEW Main’ – I don’t want to show password protected posts in the results but I have turned ‘Off’ the ‘Search and return password protected posts?’ item under ‘General Options – sources’ which does not work as the password protected posts still show up. We are using WishList member plugin.
    I have deleted cache but this does not work.
    See the image here: https://imgur.com/a/hVgLRt1
    which shows duplicate Posts – the top one of each is an ‘open’ Post and the 2nd one is a ‘Password Protected Post.

    Thanks Francis

    #36982
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Francis,

    Thank you for the details, it helps a lot!

    I checked both posts, but they are not password protected, as you can see it on the editor: https://i.imgur.com/3FHhBfB.png
    Both posts are publicly visible by WordPress defaults. 3rd party plugins may use different methods for password protection, but that will not work.

    I usually try to recommend some custom code, but for that I need some more information. If there is a method within the plugin, which we can use to determine if the current user has access to the given post by ID – any function, class method etc.. – then I can recommend a small custom code to remove the unwanted results programmatically.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #36993
    frankie68
    frankie68
    Participant

    Hi Ernest
    OK I’m not sure what WishLIst Member use to protect the Posts. I can try to ask their support.
    Alternatively is there a way to Exclude a certain category from being included in the results? I could then allocate that category to relevant Posts? But we do have many 100s of Posts and a big database so don’t want to impact too much on performance.

    #36996
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You can ask of course, but the category solution is much better. You can of course exclude the items by category. That way not custom coding is needed, and everything will work natively.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.