-
AuthorPosts
-
May 17, 2016 at 2:40 pm #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.
May 17, 2016 at 9:39 pm #634024Hi 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,
BasilisMay 18, 2016 at 12:26 pm #634359Yes but this code add to function.php of my old theme or in my new enfold theme ?
May 19, 2016 at 9:05 am #635054Hi,
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,
IsmaelJune 13, 2016 at 3:00 pm #647417Do not work
June 14, 2016 at 7:22 am #647813Hi,
Sorry but I’m not sure what you mean by that, what exactly is not working?
Regards,
RikardJune 14, 2016 at 7:38 am #647823I 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
June 15, 2016 at 5:45 am #648383 -
AuthorPosts
- You must be logged in to reply to this topic.
