[Plugin: WordPress Popular Posts] wordpress popular posts plugin stop loop and display 1 item
-
Hi there,
I wanted more control over the way the widget looks in the “wordpress popular posts plugin” so I enabled PHP to work within Widgets and I tried to call the plugins functions from there so I can have more control over what shows.I used extra attributes and everything work fine, the code I wrote within the widget is:
<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=weekly&stats_comments=0&stats_views=1&order_by=views&limit=5"); ?>
The problem is that since the loop is happening internally inside the plugin, the above code doesn’t allow me to add extra displays with each post title.
For example I want to be able to added a little star rating beside each title but since the above code delivers one whole loop package I cant modify individual outputs.
All I’m trying to do is have 5 most popular posts listed by page views not comment count, and at the same time be able to add anything extra I want beside each title.
So my question is, is it possible to stop the loop inside the plugin so I can output each post individually and I can then place it inside word press loop, OR is there a way to add the extra displays I need to show up with each post from within the plugin?
Thanks a lot for your help, first time posting, let me know if you need more information.
http://wordpress.org/extend/plugins/wordpress-popular-posts/
- The topic ‘[Plugin: WordPress Popular Posts] wordpress popular posts plugin stop loop and display 1 item’ is closed to new replies.