Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Raja Ikram

    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>';
    }

    Eliasz Kubala,

    It shows only ‘1’ if user has favorite posts and ‘0’ if has not favorite posts. It don’t generate total number of favorite posts.

    sorry, I had my statistics disabled from plugin settings, its working fine now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Favorite Posts] how to show count on avourite post like this’ is closed to new replies.