New answers tagged

1

Use WordPress functionality The function get_lastpostmodified() is extensively documented. It says in the wordpress documentation that the function accepts a timezone and a post_type. Documentation From WordPress Trac: wp-includes/post.php1 5355 * @param string $post_type Optional. The post type to check. Default 'any'. 5356 * @return string The ...


0

I was going to use the above answer from Otto but the more I looked at the templates the more it dawned on me that you don't need all that. Just hook the_author filter and check is_feed if you want a RSS specific author. function f_the_author( $display_name ) { // $display_name === string $authordata->display_name if ( is_feed() ) { ...


0

After doing a search of all folders in the site for "the_excerpt_rss", I found a Yoast plugin file that was adding the link to each post item. In the end it was as simple as accessing a field via the dashboard > SEO > advanced and clicking the RSS tab. I emptied the field "Content to put after each post in the feed", refreshed the feed, and the link was ...


0

Based on the add_feed function, here's a prototype implementation of remove_feed: /** * Remove a feed type like /atom1/. * * @global WP_Rewrite $wp_rewrite * * @param string $feedname Feed name. * @return string Feed action name. */ function remove_feed( $feedname ) { global $wp_rewrite; if ( in_array( $feedname, ...


0

you can use the filter to edit the output of the_excerpt_rss() May be the following code will help you, not sure but give it a try function removersslink( $content ) { $content = '<p>' . $content. '</p>'; return $content; } add_filter( 'the_excerpt_rss', 'removersslink' );


1

I was able to figure this out. Here's the code, explanation follows. $subscribers = get_users('role=subscriber'); foreach ($subscribers as $subscriber) { $subscriber_id = esc_html($subscriber->user_login); add_action('init', function() use($subscriber_id) { add_feed($subscriber_id, function() { get_template_part('feed', ...



Top 50 recent answers are included