• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Limit user front-end read access to posts from specific categories

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Limit user front-end read access to posts from specific categories

This topic is: not resolved

Tagged: add_role, user profile

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago by Brad Dalton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 16, 2019 at 8:51 am #492386
    photoaddictsa
    Member

    I know there are hoards of plugins that allow you to limit access to content but for some reason, I am unable to find something that works for my case.

    All users on my site will be registered as subscribers, what I need to be able to do is to go to each users’ profile and select a category/s.

    When updated the user should only be able to read posts on the front-end from the category/s that was selected.

    Anyone know of a way I can achieve this.

    July 17, 2019 at 2:44 am #492398
    Brad Dalton
    Participant

    Try RCP. I'm pretty sure you can restrict access to posts in specific categories.

    They offer free version which you can use for testing. https://wordpress.org/plugins/restrict-content/

    You might need to create membership levels for each category.

    Otherwise, you would need to add a custom field to the user profile page which hooks in with your plugin.


    Tutorials for StudioPress Themes.

    July 17, 2019 at 3:09 am #492399
    Brad Dalton
    Participant

    Like this :

    add_role( 'category_one', 'Member - Category One',array( 'read' => true ) );
    

    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble