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 4 years, 2 months ago by shoaib88.
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 4 years, 1 month ago by amida2020.
One more question, please.
If I add German translation file in plugin languages folder, will it be deleted after update?
Hi,
I’ll work in Ajax functionality and update soon.can you send your site url?
Thanks
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
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.