[wp-trac] [WordPress Trac] #15604: Empty post leads to use of excerpt in feed

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 29 12:14:58 UTC 2010


#15604: Empty post leads to use of excerpt in feed
--------------------------+-------------------------------------------------
 Reporter:  niska         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 The content of my posts are empty. Instead I'm using custom fields. I'm
 using the filter the_content to format the content. Like this

 function my_content($text) {
   $postid = get_the_ID();
   $desc = get_post_meta($postid, 'productdescription', true);
   return $desc;
 }

 add_filter('the_content', 'my_content', 0);

 However. Since the "real" content is empty. It seems as if wordpress, in
 the feed, use the excerpt, instead of the content.

 My temporary solution is to insert a dot "." in the content window and
 click save.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15604>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list