[wp-trac] [WordPress Trac] #15604: Empty post leads to use of excerpt in feed
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 31 11:01:21 UTC 2012
#15604: Empty post leads to use of excerpt in feed
------------------------------+--------------------------
Reporter: niska | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Feeds | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+--------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch 3.2-early commit => has-patch commit
Old description:
> 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.
New description:
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.
--
Comment:
Replying to [comment:6 mdgl]:
> See also #10509, possibly related/duplicate.
Indeed, thanks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15604#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list