Hi @zaeb,
the Rate my Post plugin initializes on page load and is thus unfortunately not compatible with plugins that “bypass” page load – meaning that they utilize javascript to load post content such as some infinite scroll plugins. You can read more about this here: https://wordpress.org/support/topic/js-callback/.
Unfortunately there is no easy fix for this at the moment but I will keep such plugins in mind when developing future versions.
Blaz
Thread Starter
zaeb
(@zaeb)
Hi Blaz.
thanks a lot for your quick response. I see the problem. isn’t it just possible to load the ratemypost-js already with the homepage and nost just soley with every post? or does that need a completely different architecture of the plugin?
to be honest I tried now several rating plugins and so far it seems that they all don’t work with the ‘WP Post Popup’ plugin. I don’t know right now how to solve this issue. at the moment it looks like either I use ratings or modal page but they don’t go together. do you have an idea?
Well, the thing is that most rating plugins, including mine, work with ajax to avoid caching issues. In simple terms when the page loads, the plugin sends the request to server to provide it with the average rating and vote count for that page and then it injects this info in the page. Otherwise the average rating would get cached and would not be up to date. As the request is tailored for that particular page, it’s not possible to load all info already on the homepage – that would be a performance issue on big websites 🙂
The solution would be a javascript callback function but I don’t know if the WP Post Popup plugin supports this. I do my best to ensure compatibility with other WordPress plugins but it’s so many of them 🙂