Support » Plugin: WP Favorite Posts » How to show custom value in favorite page?

  • Dear all, I’m currently trying to add code to display the custom value on favorite page as i would like to use it as post comparison. But still not working. Any one here can help? Would be greatly appreciated!

    This is the existing code as follow

    if ($favorite_post_ids):
         $favorite_post_ids = array_reverse($favorite_post_ids);
            foreach ($favorite_post_ids as $post_id) {
                $p = get_post($post_id);
                $l = get_permalink($post_id);  
                echo "<ul id='favorite_thumbnails'><li>";
    		echo "<a href='".get_permalink($post_id)."'>";
    		echo get_the_post_thumbnail ( $post_id, 'thumbnail' );
    		echo "<br>";
    		echo "<span><a href='".get_permalink($post_id)."' title='". $p->post_title ."'>" . $p->post_title . "</a></span>";
    		echo $p-> post_excerpt;
    		$zpt_mood = get_post_custom_values('Year Make');
    		echo $zpt_mood[0] ;

  • The topic ‘How to show custom value in favorite page?’ is closed to new replies.