Adding like dislike button to reviews template
-
Hi again Gemini,
You helped me a year ago incorporating a like-dislike button onto a review template with your plugin at this post:
https://www.ads-software.com/support/topic/adding-buttons-to-review-template/
I am trying to incorporate onto a new theme and for some reason, the template won’t load the kodex shortcode with your custom php function. Any suggestion would be greatly appreciated. Thank you.
My review.php template looks like this:
<?php defined( ‘WPINC’ ) || die; ?>
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Reviews</title>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
</head><section>
<nav>
{{ rating }}<h4>
{{ avatar }}{{ author }} <br><span style=”font-size:17px; vertical-align: middle;”>?</span> Verified Purchase<br>
{{ date }}</h4>
</nav><article>
<h1>{{ title }}</h1>
<body>
<h2>{{ content }}</h2> <span style=”display: inline-flex; white-space: nowrap; float: right;”> Was this review helpful? [kodex_post_like_buttons postid=”{{ id }}”]</span>
<br><p> {{ response }}
{{ assigned_to }}</p></article>
</section>
<hr></body>
</html>
- The topic ‘Adding like dislike button to reviews template’ is closed to new replies.