Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #633760

    I need to import a WordPress eXtended RSS file generated by old WordPress site in a new website but missing img thumbnail in RSS file.

    #634024

    Hi unicaweb!

    Please add the following to your functions.php file

    function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content;
    }
    return $content;
    }
     
    add_filter('the_excerpt_rss', 'featuredtoRSS');
    add_filter('the_content_feed', 'featuredtoRSS');

    please let us know if you need anything else

    Regards,
    Basilis

    #634359

    Yes but this code add to function.php of my old theme or in my new enfold theme ?

    #635054

    Hi,

    I need to import a WordPress eXtended RSS file generated by old WordPress site in a new website but missing img thumbnail in RSS file.

    Are you trying to move posts from an old site to the new one? This link should help: https://codex.wordpress.org/Importing_Content

    Best regards,
    Ismael

    #647417

    Do not work

    #647813

    Hi,

    Sorry but I’m not sure what you mean by that, what exactly is not working?

    Regards,
    Rikard

    #647823

    I have esxported RSS file from old WordPress ( http://www.mylabrador.it/ ) but when I install it in a new enfold installation under a subfolder ( http://www.mylabrador.it/nuovo/ ) the thumbnails are missing

    #648383

    Hi,

    Ok, I’m not sure how to do that and how it should work, it’s not really our area of expertise so you might want to ask the same question in a general WordPress forum as well. Send us admin login details in private so that we can have a look.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.