Use User Meta data to hide/reveal Pages
-
Okay, so I have myself a custom field for my user, but I’m not sure how I might access that data.
To be more specific with an example:
As part of the user profile, they can pick an affiliation (creature, such as toad, rabbit, bear, etc.).
The website has normal public pages to it, but it ALSO has pages and content that are specific to those creatures. So, for example, a page called “News for Rabbits”. If and only if a user has chosen “rabbit” as their affiliation, they will see that page (and obviously they will not see any other animal pages).
How can I use the value of their choice to restrict what pages they see?
And to be specific, they shouldn’t even see the forbidden pages in the menu (because the menu would be otherwise flooded with animal pages and that’s crazymaking).
How might I use the User Meta data to achieve this?
I also have installed the plugin Press Permit Core, which allows pages (and the appearance of pages in menus) to be hidden or revealed according to rules associated with groups, but I can’t see how to connect PPC to User Meta so that I can use your data this way.
If there is a complementary plug-in you know is applicable, I would appreciate any advice toward achieving a good functional mix.
Thanks!
- The topic ‘Use User Meta data to hide/reveal Pages’ is closed to new replies.