WP Favorite Posts
Favorite count and image only. No text! (3 posts)

  1. divyang.jp
    Posted 3 years ago #

    Look at the page http://demos.9lessons.info/love.php
    I want functionality like the above page has.
    Only image and favorite count. No text links.
    Plain and simple!

    Can anybody give solution?



  2. matejlatin
    Posted 3 years ago #

    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.

  3. Eliasz Kubala
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Favorite Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic