Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: [Site Reviews] Clean id
    Thread Starter lekskokorin

    (@lekskokorin)

    I’m sorry, I messed up.

    Your method is fully working, thank you very much.
    I think people will need this solution to the problem ??

    Forum: Plugins
    In reply to: [Site Reviews] Clean id
    Thread Starter lekskokorin

    (@lekskokorin)

    Unsuccessfully ??

    Fatal error: Method GeminiLabs\SiteReviews\Modules\Html\ReviewHtml::__toString() must not throw an exception, caught ParseError: syntax error, unexpected ‘id’ (T_STRING), expecting ‘]’ in D:\WebServers\OpenServer\domains\floorstory\wp-content\plugins\site reviews\plugin\Modules\Html\ReviewsHtml.php on line 89

    Forum: Plugins
    In reply to: [Site Reviews] Clean id
    Thread Starter lekskokorin

    (@lekskokorin)

    Thank you for the second answer. About the first question, so I just tried, this code does not work.

    The likes module is output in this way in review.php:
    <? php echo do_shortcode( '[wp_ulike id="<?= $review->ID; ?> "] ' );? >

    And if you specify this code, the ID simply displays <?= $review - >ID;?>.

    But if you specify {{ review_id }}, here is the full code:
    <? php echo do_shortcode( '[wp_ulike id= " {{ review_id }}"]');? >

    then the working id “review-547” is output, I need to get rid of the word review, how do I do this? ??

    • This reply was modified 4 years, 4 months ago by lekskokorin.
Viewing 3 replies - 1 through 3 (of 3 total)