Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi guys, I have the solution for your problems.

    This is the code for the RSS files that you use, in my case “/ wp-includes/feed-rss2.php”

    search in file “<? php the_excerpt_rss ()?>” and add the code just before: “<? php echo ‘<img src=”‘.get_first_image().'” height=”150″ alt=”” />’ ;?> “. This should be done for every “<? php the_excerpt_rss ()?>” in the file.

    In the event that your theme hasn’t the function of seeking the first image of each post is also modified another file, “/ wp-includes/functions.php” which must be added immediately: “get_first_image function () (
    global $ post, $ posts;
    $ First_img =”;
    $ Output = preg_match_all (‘/ <img.+src=[\'”]([^\'”]+)[\'”].*> s’, $ post-> post_content, $ matches);
    First_img $ = $ matches [1] [0];
    return $ first_img;
    )

    Omit the commas of course. Ps “The feed is not updated immediately, try to see the feed of a category and see the result”

    Sorry for my english ;=)

Viewing 1 replies (of 1 total)