Review Summary When Using Shortcodes

Front Support Plugins Support Author hReview Plugin Review Summary When Using Shortcodes

This topic contains 2 replies, has 2 voices, and was last updated by  Hesham 4 years, 4 months ago.

  • Author
    Posts
  • #1311

    Gina Pano
    Member

    I’m trying to use the shortcode [ratingbox] to display the review on my post and noticed that the summary wasn’t displaying.
    I saw someone else had the same problem in a previous post “Review Summary” .

    So I tried to implement what you said to do:
    Edit the file ratingbox_shortcode_template.php

    “Find this code near the end of the file:
    //$box .= ”;
    //$box .= ‘Review Summary:’;
    //$box .= ”;
    //$box .= ‘‘ . get_post_meta($post->ID, ‘ta_post_review_summary’, TRUE) . ‘‘;
    //$box .= ”;
    Remove the “//” from each line and update the file on your server via FTP.”

    I took out the “//” but now it shows up as follows:

    Product Name
    Rating
    Reviewed by

    A BIG EMPTY SPACE

    More Details Button

    ANOTHER BIG EMPTY SPACE

    Review Summary

    How can I have the “Review Summary” above the More Details Button and remove the big spaces? I don’t know any php….

  • #1313

    Gina Pano
    Member

    Any assistance with this would be greatly appreciated.

  • #1327

    Hesham
    Keymaster

    You can try adding this code right before the beginning of the button code:

    [code title=””]$box .= ‘

    ‘;
    $box .= ‘

    Review Summary:

    ‘;
    $box .= ‘

    ‘;
    $box .= ‘

    ‘ . get_post_meta($post->ID, ‘ta_post_review_summary’, TRUE) . ‘

    ‘;
    $box .= ‘

    ‘;
    [/code]

    The button code starts around line 174 (there is a comment // review button that indicate the start).

    I hope this helps.

The forum ‘Author hReview Plugin’ is closed to new topics and replies.