We run a Newspaper theme on WP. Content, including comments, is free. However, we want people to become paid members in order to comment. When you click in the comment box, Newspaper asks you for a login. How can we make that login registration process a subscription gateway for readers who are not yet registered members?
Only paid members to comment - everything else free
Hi Norman.
s2Member doesn’t handle commenting, but you could use it to customize your installation, editing the theme to display the comment form only to users with the paid level.
These may help:
https://developer.wordpress.org/themes/template-files-section/partial-and-miscellaneous-template-files/comments/
WP Admin > s2Member > API / Scripting > Advanced PHP Conditionals
I hope that helps!
Thinking out loud, but what about a message only logged in subscribers may see or post comments?
And then use shortcode conditions to hide the part of the page with the comments?
Maybe @Cristian can verify that would work please?
We want all users to be able to read comments. We consider that to be a tease to encourage participation and membership.
Yes, that was my thinking too. That’s why I suggest hiding just the form to submit a new comment.
In this video the guy shows where the comment form is in the theme, only instead of just commenting it out you’d add your conditional checking for his s2Member access. https://youtu.be/l4tmlOGSIno?t=173
You could use a child theme for the customization, so it’s not replaced when updating the theme. https://developer.wordpress.org/themes/advanced-topics/child-themes/
I hope that helps.