qwert Posted May 20, 2009 Share Posted May 20, 2009 Greetigns! I have this feed that has some ads. I need to do it in WP, but I seem to have some problems. And thus these problems causing the related posts in the feed to show twice Because its using "the content" function 2 times. So I am trying to change it to display only on the last use It looks like this: <?php $more = 0; the_content(""); ?> <?php $more = 1; the_content('', TRUE); ?> the first displays the exceprt only and the second displays the body minus the excerpt And the ad code: function yarpp_rss($content) { global $wpdb, $post; if (yarpp_get_option('rss_display') && $more == 1 ) return $content.yarpp_related(array('post'),array(),false,false,'rss'); else return $content; }I tried adding some functions like $more, but nothing worked. Link to comment https://forums.phpfreaks.com/topic/158963-rss-help-needed/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.