Support

Account

Home Forums ACF PRO Pro Gallery images in RSS?

Solving

Pro Gallery images in RSS?

  • Using Gallery in ACF Pro I want to include all the images in a RSS feed.

    I’ve tried various versions of this in functions.php but no luck:

    function fields_in_feed($content) {  
        if(is_feed()) {  
            $post_id = get_the_ID();  
            $output .= . get_post_field($post_id, 'img', true) . ;   
        }  
        return $output;  
    }  
    add_filter('the_content','fields_in_feed');
    function fields_in_feed($content) {  
        if(is_feed()) {  
            $post_id = get_the_ID();  
            $output .= . get_field($post_id, 'img', true) . ;   
        }  
        return $output;  
    }  
    add_filter('the_content','fields_in_feed');

    etc

  • I’m also looking for an answer to the question above.

    I have a website with an ACF Pro Gallery Field for the posts. I would like to include the images from the gallery field in the rss feed. Does anyone know how to do this?

  • the_content is not a hook that’s run in feeds. You’ll need to alter the templates used by feeds. See this https://codex.wordpress.org/Customizing_Feeds

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Pro Gallery images in RSS?’ is closed to new replies.