function wpbeginner_postrss($content) {
global $wp_query;
$postid = $wp_query->post->ID;
if(is_feed()) {
$coolcustom = get_field(\'fl_quote\');
$link = the_permalink_rss();
$content = \'<div>\' .$coolcustom. \'</div></br><div>This post first appeared on My site - read more at <a href="\'. esc_url($link) .\'">\' . get_the_title_rss(). \' →</a>\';
}
return $content;
}
add_filter(\'the_excerpt_rss\', \'wpbeginner_postrss\');
add_filter(\'the_content\', \'wpbeginner_postrss\');
由于某些原因,该链接在RSS提要中显示为空。我获取$链接的方式是否有问题?