Using the Tagdiv comment element…but wrapped in if statement

Posted in: Newspaper
Post count: 27

Hello Tagdiv Support,

What we are trying to do is use the TagDiv Comment element(shortcode) in the Single Post Template….. However, we are using a Paywall plugin (Leaky Paywall) and we want to limit commenting to Logged in Paywall users. So, in general terms…with a twentysomething theme it would be something like :

PHP code :

if (leaky_paywall_has_user_paid()) {
comments_template(”, true);
} else {
echo ‘<h3>You must Subscribe to view and leave a comment.</h3>’;
}

Is there something like this we can add to the Single Post Template with the Tagdiv comment shortcode? If so, where would we do that? And would it be overwritten with Theme updates?

Thanks for your time 🙂
Tim

Post count: 21065

Hello Tim!

I’m sorry, but we cannot provide support for untested plugins.
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.

Thank you for your understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.