• Resolved Marc Getter

    (@fizzgig9999)


    I have been able to successfully restrict access to specific custom post types. All of them and by page. I’m trying now to restrict pages based on a selected taxonomy value. When I add that taxonomy value to the conditions, it opens up access to everyone. I even tried removing the post type condition.

    Is there something I’m missing?

    – Marc

    https://ww.wp.xz.cn/plugins/restrict-user-access/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Do you have a plugin that adds a taxonomy to Pages?

    Pages do by default not have any taxonomies, so if you haven’t added any and simply want to restrict specific taxonomies (regardless of pages), you should create another condition group and add them there.

    So the logic would be Pages X, Y Z OR Taxonomy X, Y Z, instead of AND.

    Let me know if this works.

    Thread Starter Marc Getter

    (@fizzgig9999)

    I’m using CPT UI to add the taxonomy “accounts” with the values a, b, and c. I’m creating a custom post type document of account_page and setting the account taxonomy to b.

    I’m trying to restrict the pages with account b so only a specific set of users can see them. When I setup just that restriction it opens up access to the page for everyone.

    I can send you xml from the taxonomies when I get in tomorrow morning.

    – Marc

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Did you resolve this? Otherwise you can send the xml to jv [at] intox.dk and I will have a look at it asap.

    Thread Starter Marc Getter

    (@fizzgig9999)

    I looked back and read what I wrote. It doesn’t look completely clear.

    I have a set of posts with the custom type account_page. I also have a taxonomy called Accounts.

    Say I have an account page, let’s call it Wachovia. And I assign it Accounts taxonomy value of bank.

    I’d like to have a user, bankuser on the list as being able to access pages categorized with the Accounts value, bank.

    When I set up the Access Level configuration using the content type of Accounts and add just bankuser to members, everyone can still access the page, even when not logged in.

    If I set the Content type to the account_page post type and choose the post, Wachovia with the same user on the member list, only that user can access the page.

    Is there a restriction I can add to the page so no one except who I choose can use it based on the taxonomy value of the document?

    Plugin Author Joachim Jensen

    (@intoxstudio)

    It should be possible to restrict content based on a taxonomy, yes.

    Did you try adding a post category to the Conditional Logic to see if it posts in that category are restricted? If that is the case, then the issue is most likely some compatibility issues with CPT UI.

    Would it be possible for you to export the settings you used in CPT UI and send it to jv [at] intox.dk?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Restricting based on Taxonomy value’ is closed to new replies.