Support » Plugin: WP Favorite Posts » [Plugin: WP Favorite Posts] Favorite count and image only. No text!

Viewing 2 replies - 1 through 2 (of 2 total)
  • you may consider using this plugin http://wordpress.org/extend/plugins/wp-voting/

    and modify it the way you want… i’m about to do the same thing as you’re looking for with this plugin.

    Hi Divyand.jp

    I had the same problem.

    Try this code.

    $fav = 	$wpdb->get_var(
    "SELECT count(*)
    FROM wp_usermeta
    WHERE meta_key='wpfp_favorites' AND meta_value LIKE '%".get_the_ID()."%'"
    )  		;
    if($fav > 0){
    	echo '<div id="count">';
    //					echo '<a class="wpfp-link" rel="nofollow" href="'.site_url().'?wpfpaction=add&postid='.get_the_ID().'">';
    	echo '+'.$fav;
    	echo '</a>';
    	echo '</div>';
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Favorite Posts] Favorite count and image only. No text!’ is closed to new replies.