WP Favorite Posts
How to show custom value in favorite page? (1 post)

  1. Robin
    Posted 3 years ago #

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


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