Support » Plugin: WP Post Rating » Getting the rating info

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author shoaib88

    (@shoaib88)

    Hi,
    You can use shortcode “[wppr_avg_rating_post_id id=’1′]” to show post/events individual in any place. Change 1 from id=”1″ with your post id.

    Let me know if you have any question.
    Thanks

    • This reply was modified 1 year, 7 months ago by shoaib88.
    Thread Starter amida2020

    (@amida2020)

    Thank you!

    Thread Starter amida2020

    (@amida2020)

    Hello again,

    I am getting the events on page with short codes in 2 ways.
    1. With PHP
    2. With search filter based on Ajax.

    For first way I am using:

    <?php echo do_shortcode('[wppr_avg_rating_post_id id="' . $post->ID . '"]'); ?>

    and it works.

    For second, with Ajax, I saved the rating code in variable:

    $event_rating = do_shortcode('[wppr_avg_rating_post_id id="'. $post->ID.'"]');

    $result[] = [ 'event_rating' => $event_rating ];

    and getting the result in template like this:

    ${response[i].event_rating}

    The problem is that it shows just empty stars. On hover, it shows correctly the info about average and total.

    Could you please help to make it work in Ajax?

    • This reply was modified 1 year, 7 months ago by amida2020.
    Thread Starter amida2020

    (@amida2020)

    One more question, please.
    If I add German translation file in plugin languages folder, will it be deleted after update?

    Plugin Author shoaib88

    (@shoaib88)

    Hi,
    I’ll work in Ajax functionality and update soon.can you send your site url?
    Thanks

    Plugin Author shoaib88

    (@shoaib88)

    The translated file will not be deleted if you update the plugin.But its better if you take a backup of your German language files before the update.
    Thanks

    Thread Starter amida2020

    (@amida2020)

    Hello!

    Thanks! Looking forward for solution.
    At the moment I am building the plugin on local server (Docker Container on Devil Box), it is not in Internet.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting the rating info’ is closed to new replies.