New answers tagged

1

If we peek into the fetch_feed() function we see the instantiation: $feed = new SimplePie(); where the object is made accessible through the wp_feed_options hook via: do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); where $feed is passed by reference. This means we can adjust that object instance through the hook, before the $feed-...


1

If you mean how to ignore <!--nextpage--> in the feed content, then we can adjust this approach for feeds: /** * Disable content pagination for feeds */ add_filter( 'content_pagination', function( $pages ) { if ( is_feed() ) $pages = [ join( '', (array) $pages ) ]; return $pages; } ); where $pages is an array that contains the ...


3

Note that if you remove the <pubDate> tag from the rss2 feed, then it will become unvalid. So you don't want to do that! If it's empty: <pubDate></pubDate> then the feed will still not validate: > pubDate must be an RFC-822 date-time So that wouldn't be an option either. If you want it static, for all items, then you could use ...



Top 50 recent answers are included