Support » Plugin: Send Images to RSS » summary feed for one post type, full feed for another?

  • Is there any way to have Send Images to RSS apply a summary feed to the default WP post type, but allow a full feed for a custom post type? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Hi Gretchen, that’s not really a plugin question, but for WordPress itself. Looking at the code to manage the RSS feed, it looks like you could probably change the value of the RSS feed type option during the feed output. Something along the lines of this for a start, maybe:

    
    add_filter( 'option_rss_use_excerpt', 'prefix_maybe_modify_rss_feed' );
    /**
     * Maybe change the RSS feed output based on the post type.
     *
     * @param bool $option
     * @return bool
     */
    function prefix_maybe_modify_rss_feed( $option ) {
    	$post_type = get_post_type();
    	if ( 'different_post_type' === $post_type ) {
    		// return a different value
    	}
    
    	return $option;
    }
    

    You’d need to experiment with how to change it based on the base site setting and what you want to change, but I think that should be a start.

    Thread Starter Gretchen Louise

    (@gretchenlouise)

    Thank you, Robin! I figured it was going to be more of a WP issue than related to plugin settings, but thought I’d check in case I was missing something.

    I’ll see what I can do with that code. I appreciate your reply and pointing me in the right direction!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘summary feed for one post type, full feed for another?’ is closed to new replies.