Support » Plugin: Rate my Post - WP Post Rating » Is it possible to change the title, subtitle, etc, with shortcode attributes?

  • Resolved pikamander2


    On some specific posts, we’d like to use a different rating section title than the rest of the site.

    It would be great if we could do something like this:

    [ratemypost title="Thanks for reading! Please rate the article below."]

    Is that possible to do, and if not would it be possible to add it in?

Viewing 1 replies (of 1 total)
  • Plugin Author Blaz K.


    Hi @pikamander2,

    it is already possible to change strings for specific posts. Check out the developer features here:

    Below is an example:

    the array has the following keys:
    rateTitle, rateSubtitle, rateResult, rateResult2, cookieNotice, noRating, afterVote, star1, star2 ,star3 ,star4 ,star5, socialTitle, socialSubtitle, feedbackTitle, feedbackSubtitle, feedbackText, feedbackNotice, feedbackButton, feedbackAlert, submitButtonText
    function modify_rmp_strings( $stringsArray ) {
      if ( is_single( array( 17, 12, 13 ) ) ) { //insert post ids or change the conditional tag
        $stringsArray['rateTitle'] = 'How delicious was this recipe?';
        $stringsArray['rateSubtitle'] = 'Click on a star to rate this recipe!';
        $stringsArray['afterVote'] = 'Thank you for rating this recipe';
        $stringsArray['socialTitle'] = 'As you found this recipe useful...';
        $stringsArray['feedbackTitle'] = 'How come you did not like this recipe?';
        $stringsArray['feedbackSubtitle'] = 'Can we improve this recipe?';
        $stringsArray['feedbackText'] = 'Give us some tips...';
      return $stringsArray;
    add_filter( 'rmp_custom_strings', 'modify_rmp_strings' );


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.