Support » Plugin: WordPress Reviews by ReviewPress » How to add review form in specific category posts? Solution

  • Resolved jimalhere



    I have been using this plugin on my WordPress website. The site has many categories. But I want to show the review form in post from one specific category. I tried few codes from online forums and combine it with Reviewpress short code. Most of them didn’t work. But the following code works.

    if (has_category('your_category')) {
    echo do_shortcode( "[REVIEWPRESS_FORM]" );
    echo do_shortcode( "[REVIEWPRESS_SHOW]" );

    This code shows both Reviewpress form and reviews in posts from a specific category called (your_category). Change your_category text with your specific category.

    You can use this code in your single.php file. Hope it will help you.


Viewing 1 replies (of 1 total)
  • Plugin Contributor Burhan Nasir


    Hi jimalhere,

    Thanks for the amazing solution. We are adding some amazing features in our future release.


Viewing 1 replies (of 1 total)
  • The topic ‘How to add review form in specific category posts? Solution’ is closed to new replies.