Support » Plugin: FeedWordPress » FeedWordPress and Post Thumbnails

Viewing 13 replies - 1 through 13 (of 13 total)
  • i use this function to get the first image from the imported entries

    function get_first_image() {
        global $post, $posts;
        $first_img = '';
        $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i’,     $post->post_content, $matches);
        $first_img = $matches [1] [0];
        if(empty($first_img)){ //Defines a default image
            $first_img = “/images/default.jpg”;
        return $first_img;

    I copy/pasted the code in the “functions.php” but it broke the site. I don’t know PHP but I know enough to do the basic things. Is there any thing more than should do here to fix the problem?

    Maybe you could use the plugin ‘Better Feed’? Better as in ‘better than feedwordpress’:

    I haven’t tried it (yet).

    Better Feed has absolutely nothing to do with FeedWordPress!

    Yes. They have two different functions.


    I wonder if you’ve found a working solution for this? I have about five sites on a network install and the main site’s “General News” category of posts is feeding the other five. These are using themes that make use of post thumbnails…

    Not yet.


    I’m closer. Do you happen to be a member of StudioPress? My thread is behind the login on their Genesis Framework forums. Although the method I’m exploring is a function that filters the built-in genesis_get_image hook to include Justin Tadlock’s get_the_image. It’s working for thumbnail sizes now, but there are other sizes I’m trying to get it to work with also.

    Thanks to Daisy Olsen for the actual function.

    If you do have a login to their support forum, the thread is here:

    Reply To: How to translate everything?

    I have the sam problem i can add the thumd in my post


    No. I don’t use Genesis. Neither I have access to the support forum.

    Hi, I have the same problem, could solver?

    Looks like you might have some luck installing a plugin called Auto Post Thumbnails. I’m trying it out now to see if it does the job automatically; it certainly fixes things for older posts already pulled by FeedWordPress…

    Hi, Have the same problem. Need to recieve images to display in the posts. Hope to find a hack for this issue…

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘FeedWordPress and Post Thumbnails’ is closed to new replies.