• Resolved stephunique

    (@stephunique)


    Hello

    I am testing this plugin on a test site. I am really happy that it recognises the other plugins I have installed and their capabilities, because this allows me to restrict them using the rules.

    I have a plugin that lets users publish listings (like on a classifieds website) on the front end. I created 2 test categories, called “one” and “two”. I would like to restrict everything in category “two” from being seen by logged out users and only show to certain logged in users by their role. The plugin can do all this, but the problem is, when I select hide content if “Content Is A Listing with Category”, it asks me to select/type in the category but when I type it in, it says “No suggestions” and no cateogries are listed so I cannot actually select the category I want to hide.

    Can you assist?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @stephunique – We can try. This could be a few things:

    1. Errors during the API request.
    2. They use Custom Post types & taxonomies, but only for the interfaces & urls, but custom tables for other things. Meaning we query and there simply isn’t any results in the taxonomy table.
    3. You already added a restriction against those categories that applied to yourself, thus they are being removed. Simply toggle the “Exclude Admins” option under the plugins’ main Settings tab.
    4. They are already filtering these somehow different than mentioned above.

    You might try duplicating the issue on our demo sites, if you can give us steps to replicate it we can definitely try to work it out.

    Thread Starter stephunique

    (@stephunique)

    Hello @danieliser

    Thank you for the reply.

    I can tell you that the “exclude admin” is already on and I am not excluding the admin in my rules.

    You can try to replicate this on your own site, but you need to install some extra plugins. If you want to try, here are the instructions:
    1. Install the plugins “Hivepress” and “Paid Listings” (this one requires Hivepress to work. Please note in the back end codes, Hivepress is referenced as simply “hp”). Paid listings allow you to add listings like ads on a classified website.

    2. In the wordpress dashboard, you will see “Hivepress” and “Listings”. Go to Listings -> Categories and make 2 categories, you can call them anything you like. For these instructions I will call them “one” and “two”.

    3. Go to Listings -> Add New and add two test listings, one at a time. While editing the listing, on the right hand side you will see “Categories”. Check only one category for each listing so you have one listing per category. Make sure you publish the listing (view it in a private browsing mode as a logged out user). You should have a listing for Category “One” and a listing for category “Two”. When you confirm you can see both ads, then we will try to restrict category “Two” and leave category “One” visible to everyone as a control.

    4. Go to Settings -> Content Control (or where ever you access the settings for this plugin). Under “Who can see this content?”, I chose “Logged in users”. For User Role, I chose “Matching”, selected the appropriate roles I want to allow to see including Administrator. If you don’t have any other roles, that is fine because I only want to hide it to logged out users, but if you have another user, select that too. I have several other user roles and only one role that I want to give access to when they are logged in so I selected that, two roles in total including Administrator that are allowed to see the category when logged in.

    5. Still in the Content Control settings, on the left hand side, select “Content” (the protection tab settings doesn’t matter, but I had it on “Replace content” and “Custom Message”). I made a new rule for “IF Content Is A Listing with Category”. You should see a text box. For me, it says “Select hp listing category” (hp stands for Hivepress so I know it recognises the Hivepress plugin). Type in “Two” for category two and for me see it says “No Suggestions”. Naturally, that category is not hidden as a result.

    I would also like to add that when I am scrolling through the rules, if I try to click on the scroll bar, it closes the rule dropdown menu, so I have to use my scroll wheel on my mouse instead and scroll through all of the options. Even then, sometimes the menu closes by itself while I am still scrolling.

    Please let me know if you see this issue too, thank you.

    Plugin Author Daniel Iser

    (@danieliser)

    @stephunique – I’ll have to take a look but if their code is anything like The Events Calendar which we have been trying to make work for 3 weeks, it might not simply “just work”. In that example TEC creates “Event” post types that show up in our rules table, but they also have a custom _events db table that they query directly to populate the Event Calendar views, so we can’t really filter events reliably even though they appear in our auto-generated post type rules.

    Thread Starter stephunique

    (@stephunique)

    Hello @danieliser

    I’ve decided to close this support thread and thought I should tell you so you don’t waste time testing it out. I’ve decided to close this thread because I’ve decided the end goal I want is better achieved via subdomains rather than restricting things on a main site.

    If anyone else wants something similiar or if I want this feature again in the future, we can post a new support thread or reopen this.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.