Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6429

    After adding the code from shoutbox theme in functions.php I’m getting thumbnail, the problem is the size 80x80px:

    Currently in Corona we have:

    //change default thumbnail size on theme activation

    add_action('avia_backend_theme_activation', 'avia_set_thumb_size');

    function avia_set_thumb_size() {update_option( 'thumbnail_size_h', 80 ); update_option( 'thumbnail_size_w', 80 );}

    from Shoutbox:

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED

    add_filter( 'the_excerpt_rss', 'inoplugs_insertThumbnailRSS' );

    add_filter( 'the_content_feed', 'inoplugs_insertThumbnailRSS' );

    function inoplugs_insertThumbnailRSS( $content ) {

    global $post;

    $slides = avia_post_meta($post->post_id, 'slideshow');

    if ($slides){

    $postimage = avia_image_by_id($slides[0],'thumbnail');

    $content = '<div>' . $postimage . '</div>' . $content;

    return $content;

    }

    }

    I need to show different featured image, 610x255px (‘page’ size) or aviaCordion image size (610x370px)

    #54128

    Hey,

    you can replace “thumbnail” with any predefined size in function.php.

    #54129

    thanks for this great post :) exactly what I needed too.

    #54130

    Btw, im also interested in “how to add images from Slider to the RSS”.

    As i can see, you did some previous researches about the topic.

    Can any1 please provide the full php codeinstructions, of how to put Featured images into RSS?

    Right now (pretty much the “default” settings i believe) in my RSS – there is only blank text showed (not Features images).

    The only images which appear on the RSS – is the pictures which are “inserted” right in the body of the post.

    In that case – those pictures appeared in the RSS. But “Featured images” – no no no….

    #54131

    You can use the code which I provided here: http://www.kriesi.at/support/topic/featured-media-rss-feeds

    // THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
    add_filter( 'the_excerpt_rss', 'inoplugs_insertThumbnailRSS' );
    add_filter( 'the_content_feed', 'inoplugs_insertThumbnailRSS' );
    function inoplugs_insertThumbnailRSS( $content ) {

    global $post;
    $slides = avia_post_meta($post->post_id, 'slideshow');
    if ($slides){
    $postimage = avia_image_by_id($slides[0]['slideshow_image'],'thumbnail');
    $content = '<div>' . $postimage . '</div>' . $content;

    return $content;
    }
    }

    #54132

    Thx! Will try that later today!

    Any ope for reply here: http://www.kriesi.at/support/topic/aviacordio-slider-in-post-ruin-the-blog ? Pls!

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

The topic ‘Featured Image in RSS Feeds’ is closed to new replies.