Hey guys, I am a little stuck and need some help. So I've made a basic wordpress plugin which creates a short tag "[review id=1]" This short tag would then query a mysql database and display the info for the review with $id 1 which works fine. The problem is, part of the review calls on another plugin, http://wordpress.org/extend/plugins/mombly-review-rating/ to display the rating as in stars by displaying "[Rating:4/5]" However, rather than displaying the picture, "[Rating:4/5]" is written down whereas normally I'd get 4 stars. Is there anyway I can fix that? Cheers
Have you checked the priority of your plugin? it sounds to me like the second plugin is running before you have added your rating. Go into your plugin, and make it run before the second plugin, or adjust the other plugin (that isn't yours), to run after your plugin has inserted the shortcode
How do I change priorities? It seems to load my plugin before the rating one and also the built in theme functions. Is there a way to make my plugin be the last to load? edit: come to think of it, I'd want mine to be the last one so that all the other plugins and template functions would've had a chance to load.
When I add: to the bottom of the plugin, it gets rid of the value of $id The reason I mentioned template too is because certain template widgets are malfunctioning in the presence of this plugin/shortcode
So is it the rating image plugin that's causing the malfunctions? Plus, using 0 makes it the top priority. So if you want your plugin to run first and insert your on the fly code, make your plugin 0, or a number lower than the rating image one
The addition of: regardless of the priority number causes the $id to stop working :S edit: would you mind if I sent you the code to have a look at?
have you tried altering the priority numbers on both the plugins? And sure, go for it. Has the review rating plugin ever worked on your site?
I've tried altering both priorities with no luck. the review plugin works great on the site at the moment. Here is the current working version of it: http://pastebin.com/qiUy6hj2