WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. divyang.jp
    Member
    Posted 1 year 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?

    -Divyang

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. matejlatin
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic