• Hello,

    I can’t seem to find a good solution for this, so I’m hoping somebody can help point me in the right direction.

    Is there a way that I can limit the number of posts, within a certain category, that a user can view over a specific time frame? For example, I have a list of 70-80 posts in a certain category on a page. I’d like for a user to be able to view only, say, 4 posts within that category per month.

    Is there something out there that does that?

    I have build my entire membership site on MemberPress, but spoke w/ the developers and they said it’s not possible with their plugin.

    Any help would be greatly appreciated!

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There may be a more elegant solution, but you can control the output of post content with ‘the_content’ filter. The user will see the title, date, author, whatever your theme displays, but only what your filter callback returns as content. It could return “You’ve used up your allocation of ‘Current News’ posts, come back next month.” or the actual content, depending on data stored in user meta.

    Other code would increment the view count in the appropriate category when the user requests a single page. A scheduled task can reset the counts for all users once a month.

    Obviously, this is a custom coded solution. I’m not very knowledgeable about available plugins, but I’m doubtful one exist. If you’re unable to code yourself, you can hire help at jobs.wordpress.net.

Viewing 1 replies (of 1 total)

The topic ‘User View Limits By Category, Time Frame’ is closed to new replies.