Short Code Not Working on Twenty Sixteen Theme
-
Hi,
I’m using the latest version of WordPress with the Twenty Fifteem theme.
I have added the following shortcode into the content.php file to display the review form above the content.
echo do_shortcode('[WPCR_SHOW POSTID=' . get_the_ID() . ' NUM="5" PAGINATE="1" PERPAGE="5" SHOWFORM="1" HIDEREVIEWS="0" HIDERESPONSE="0" SNIPPET="" MORE="" HIDECUSTOM="0" ]');
The create your own review button is showing and works, the form is displayed when clicked to leave a review.
I can see that the review initially gets associated with the post but when the review is opened in the admin so that it can be approved/published the association is deleted, there is no longer an entry for wpcr3_review_post meta value (it is there before the review has been approved/published)
If I remove the shortcode and tick the Enable WP Customer Reviews for this page checkbox on the post then this works fine. If I also include the shortcode on the single.php file then I get duplicate reviews displaying.
Any ideas?
Many thanks,
Richard.
- The topic ‘Short Code Not Working on Twenty Sixteen Theme’ is closed to new replies.