WordPress.org

Support

Support » Plugins and Hacks » FeedWordPress and Post Thumbnails

FeedWordPress and Post Thumbnails

Viewing 13 replies - 1 through 13 (of 13 total)
  • devmohsh
    Member

    @devmohsh

    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;
    }

    bluebird2
    Participant

    @bluebird2

    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?

    janbletz
    Participant

    @janbletz

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

    Piet Bos
    Participant

    @senlin

    Better Feed has absolutely nothing to do with FeedWordPress!

    bluebird2
    Participant

    @bluebird2

    Yes. They have two different functions.

    Adam W. Warner
    Participant

    @awarner20

    @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…

    bluebird2
    Participant

    @bluebird2

    Not yet.
    🙁

    Adam W. Warner
    Participant

    @awarner20

    @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:

    Reply To: How to translate everything?

    pasqualino77
    Member

    @pasqualino77

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

    bluebird2
    Participant

    @bluebird2

    @awarner20,

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

    MaxMendez
    Member

    @maxmendez

    Hi, I have the same problem, could solver?

    Gwyneth Llewelyn
    Participant

    @gwynethllewelyn

    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…

    Zeb
    Member

    @zeb-el

    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.