Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Leo Fajardo

    (@leorw)

    Hi @freedumbo,

    If you are looking for shortcodes, please read more here: https://rating-widget.com/support/shortcodes.

    Thanks

    Thread Starter freedumbo

    (@freedumbo)

    I use comment by customizing.
    I try to adjust your shortcode,..I don’t know how to insert…

    foreach ($comments as $comment) {
    $output .= ‘<div class=”comment-body”><span class=”comment-author-link”>’.strip_tags($comment->comment_author).'</span><span class=”comment-date-2″>’.strip_tags($comment->comment_date) . ‘</span>
    <span class=”comment-excerpt”>’ . strip_tags($comment->com_excerpt).'</span></div>
    ‘. rw_the_post_rating($postID = false, $class = ‘comment’, $schema = false);
    }
    Or
    $output .= ‘</div><div class=”comment-body”><span class=”comment-author-link”>’.strip_tags($comment->comment_author).'</span><span class=”comment-date-2″>’.strip_tags($comment->comment_date) . ‘</span>
    <span class=”comment-excerpt”>’ . strip_tags($comment->com_excerpt).'</span></div>
    ‘. do_shortcode( ‘ [ratingwidget type=”comment”] ‘ );
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do you have simple code to attach anywhere?’ is closed to new replies.