misterdude
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Popular Posts] Custom field value in custom HTML markupHi Hector,
I patched up the bug and got it to work just fine. I had to empty out the cache in order for this to work but that wasn’t an issue as this is a new site/blog. I imagine this might be an issue if you are running an established site and needed to add custom fields to WPP.
The “missing arguments” warning, an error on my side. I used the wrong code in header.php
Thank you for all the support. you’re awesome, Hector!
Forum: Plugins
In reply to: [WP Popular Posts] Custom field value in custom HTML markupLet me revise my previous post.
What is the correct PHP code to place in the header.php and sidebar.php in order to make these two functions work?
function my_trending_post( $post_html, $p, $instance ){ $output = '<li><a href="' . get_the_permalink( $p->id ) . '">' . get_post_meta( $p->id, 'Trending', true ) . '</a></li>'; return $output; } add_filter( 'wpp_post', 'my_trending_post', 10, 3 );function my_custom_sidebar( $post_html, $p, $instance ){ $output = '<div class="holder"><a href="' . get_the_permalink( $p->id ) . '">' . $p->thumb_img . '</a><p><a href="' . get_the_permalink( $p->id ) . '">' . $p->title . '</a></p><span>' . $p->category . '</span></div>'; return $output; } add_filter( 'wpp_post', 'my_custom_sidebar', 10, 3 );The code below works but only if it’s one WPP on the site…
if ( function_exists('wpp_get_mostpopular') ) wpp_get_mostpopular('order_by=views&limit=5&range=monthly');Forum: Plugins
In reply to: [WP Popular Posts] Custom field value in custom HTML markupExcellent, Hector! 🙂
I’m currently trying to use this code to output 5 custom field values (in header.php) that are linking to the post.
But what if I’m already using WPP on a sidebar widget? I noticed this effects that sidebar widget and also gives me missing arguments warnings.
http://frightfeed.com/blair-witch-sequel-set-for-september
Thank you for the assistance. Highly appreciate it!
Forum: Plugins
In reply to: [WP Popular Posts] Custom field value in custom HTML markupHi Hector,
Thanks for the reply. Really appreciate it. Do you have an example?
Or perhaps i can hire you to write it up if you’re currently available.
Forum: Plugins
In reply to: [WP Popular Posts] load first image from postThanks, Hector!
Great plugin 🙂