amida2020
Forum Replies Created
-
Forum: Plugins
In reply to: [kk Star Ratings - Rate Post & Collect User Feedbacks] Move stars to CommentsAnother question is about Languages.
I made a German Translation but it doesn’t work.
When I switch to German in admin panel I have still English version.
In Languages folder I created
kk-star-ratings-de_DE.po
kk-star-ratings-de_DE.moForum: Plugins
In reply to: [WP Post Rating] Getting the rating infoHello!
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.Forum: Plugins
In reply to: [WP Post Rating] Getting the rating infoOne more question, please.
If I add German translation file in plugin languages folder, will it be deleted after update?Forum: Plugins
In reply to: [WP Post Rating] Getting the rating infoHello 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 6 years, 3 months ago by amida2020.
Forum: Plugins
In reply to: [WP Post Rating] Getting the rating infoThank you!
Not always, but many are the same, Theater events.
I think, in the URL should be included the ID of event which is unique.
But how based on such URL to get the event object on page?Thank you, but as I wrote, in my case I have many events with the same title, for different days, and time.
Since I use advanced content type there is no permalink.
If I create it based on title, then have many the same permalinks.
On event page I need to get somehow the object of this event in order to extract data.Any Answers?
I created the single post page but can’t get the post data.
Since my custom posts are based on Advanced Content Type, I can not get the permalink field. I think, I have to create my custom permalink…
Since the imported XML file contains events with the same title for different dates, I think, the permalink should include the ID as well.
Any advice?
1. How to create the correct permalink?
2. How to get from this permalink the object and fields data on single event page?