Héctor Cabrera
Forum Replies Created
-
Hi sondon,
There’s no ETA for this yet as there are other areas of my plugin that need more attention now.
Hi there,
Yes, there’s the
pages
shortcode attribute for that. Set it to 1 to include pages on your list, or 0 to have them excluded.Guido, the bullet is being appended by your theme’s css stylesheet. WordPress Popular Posts doesn’t add any css because I didn’t want to mess with people’s layouts.
Anyways, can’t help you any further without seeing your site. Need to know how your theme builds my widget into it to give you a better idea.
No, thank you for using my plugin!
Hi Nurb,
Try this: open the
wpp.css
stylesheet located at yourwordpress-popular-posts/style
directory and change this…/* Stats tag styles */ .post-stats { font-size:9px; font-weight:bold; }
…into this:
/* Stats tag styles */ .post-stats { display:block; font-size:9px; font-weight:bold; }
Hi whizzer,
The problem is that when you use the float:left property all elements will attempt to align horizontally, hence the weird alignment effect you’re seeing on your “standalone” version of the popular listing.
I would add this to the
<head>
section of your Rich Top page:<style> ul {margin:0; padding:0} ul li {overflow:hidden; list-style:none; float:none; clear:both; margin:0 0 5px 0; height:70px;} </style>
Hi mzimmers,
I haven’t tried that but yes, it should still pick up the stats even if the widget isn’t present on your theme.
Hi there,
Thanks for pointing this out. Will include the suggested fix on the next release of WordPress Popular Posts.
Actually, here’s a simpler solution. You can hide the views on your theme by doing something like this:
<?php if( current_user_can('manage_options') ) : ?> // current user is admin Total views: <?php echo wpp_get_views(get_the_ID()); ?> <?php endif; ?>
Hi there,
Currently, there’s no way to achieve this without hacking WordPress Popular Posts’ code. If you feel like messing around with it, this is what you need to do:
# Open wordpress-popular-posts.php using an editor such as Windows’ Notepad or Adobe Dreamweaver, find this line:
$mostpopular = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts $join WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_password = '' AND $range $force_pv $nopages $exclude GROUP BY $wpdb->posts.ID ORDER BY $sortby DESC LIMIT " . $instance['limit'] . "");
… and change it to:
$mostpopular = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts $join WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_password = '' AND $range $force_pv $nopages $exclude AND $wpdb->posts.ID NOT IN(1,3,17,8) GROUP BY $wpdb->posts.ID ORDER BY $sortby DESC LIMIT " . $instance['limit'] . "");
Notice the
AND $wpdb->posts.ID NOT IN(1,3,17,8)
part? Replace the numbers with the actual IDs of the posts you wish to exclude (comma separated) from the list.Version 2.1.5 should be released pretty soon. The beta version you just installed is quite stable, don’t think there will be many differences with the official release.
Thanks for pointing out the HTML Markup issue. Just checked it and wasn’t able to reproduce the bug. Mind sharing a screenshot of your current WPP widget settings with the HTML Markup feature enabled so I can test it here?
Nope, there’s no ETA for this my friend. Still working on this and some other new features. This will take some time.
Thanks ozkan for helping out!
Haven’t checked this out yet Max as I’ve been incredibly busy the past few weeks. Sorry about that, will try to figure this out within the next days.
Hi there,
You’re using the wrong parameters mate. This is what you need:
<?php
if (function_exists(‘wpp_get_mostpopular’)) wpp_get_mostpopular(“stats_comments=0&range=weekly&order_by=views&pages=false&limit=5”);
?>