WordPress.org

Ready to get started?Download WordPress

Forums

FeedWordPress
FeedWordPress and Post Thumbnails (14 posts)

  1. bluebird2
    Member
    Posted 3 years ago #

    IS there any way to generate post thumbnails ("Featured Images" in WP 3) from the images in the imported posts in FeedWordPress?

    http://wordpress.org/extend/plugins/feedwordpress/

  2. devmohsh
    Member
    Posted 3 years ago #

    i use this function to get the first image from the imported entries

    function get_first_image() {
        global $post, $posts;
        $first_img = '';
        ob_start();
        ob_end_clean();
        $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;
    }
  3. bluebird2
    Member
    Posted 3 years ago #

    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?

  4. janbletz
    Member
    Posted 3 years ago #

    Maybe you could use the plugin 'Better Feed'? Better as in 'better than feedwordpress': http://wordpress.org/extend/plugins/ozh-better-feed/

    I haven't tried it (yet).

  5. Piet
    Member
    Posted 3 years ago #

    Better Feed has absolutely nothing to do with FeedWordPress!

  6. bluebird2
    Member
    Posted 3 years ago #

    Yes. They have two different functions.

  7. Adam W. Warner
    Member
    Posted 3 years ago #

    @bluebird2,

    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...

  8. bluebird2
    Member
    Posted 3 years ago #

    Not yet.
    :-(

  9. Adam W. Warner
    Member
    Posted 3 years ago #

    @bluebird2,

    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:
    http://www.studiopress.com/support/showpost.php?p=198098&postcount=10

  10. pasqualino77
    Member
    Posted 3 years ago #

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

  11. bluebird2
    Member
    Posted 3 years ago #

    @awarner20,

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

  12. MaxMendez
    Member
    Posted 3 years ago #

    Hi, I have the same problem, could solver?

  13. Gwyneth Llewelyn
    Member
    Posted 3 years ago #

    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...

  14. Zeb
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic