Support » Plugin: WPeMatico » Enable first image / Featured Image

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    It could be a plugin conflict.

    Try those—
    1) Deactivate all the plugins except this one: WPeMatico, then check your site, if it worked then activate plugins one by one & find which one is causing this issue.

    2) If the previous trick doesn’t works, then disable the ‘(Enable first image found on content as Featured Image)’ option via plugin’s settings page and then add the following codes into functions.php file of your current theme which will work perfectly for setting auto featured image.

    function set_featured_image_for_posts()
      // Get all posts so set higher number,
     // you can increase to any number if you have big amount of posts
      $args = array( 'numberposts' => 5000);
      // all posts
      $all_posts = get_posts( $args );	
      foreach($all_posts as $k=>$v)
        $args = array(
        'numberposts' => 1,
        'order'=> 'ASC',
        'post_mime_type' => 'image',
        'post_parent' => $v->ID,
        'post_type' => 'attachment'
        // Get attachments
        $attachments = get_children( $args );
        foreach($attachments as $attach)
          // Get only first image
            $attachmentsid = $attach->ID;
        // Set Featured image

    Deactivated all plugins except WPeMatico, and still have no images getting saved.

    Added the code you provided to my functions.php and still no images getting saved.

    Here are my settings:

    Cache Images: checked
    No link to source images: not checked

    nothing enabled

    nothing enabled

    max items: 10
    use feed date: unchecked
    Post title links to source: unchecked
    Strip links from content: checked
    Discussion options Closed (no pings)

    Cancel Cache: uncecked

    nothing checked or added

    Add auto Categories: checked (fav feature)

    Hello 🙁 please help me

    Plugin Author etruel


    have you solved the problem with new version 1.1.9 ?

    No, upgrading to v1.1.9 did not resolve the issue.

    Here is a chunk of the log that I think is saying the image couldn’t be saved… let me know “if” and “what” I can do.

    2014-02-19 00:45.39: Uploading images.
    2014-02-19 00:45.39: Uploading image…
    2014-02-19 00:45.39: [WARNING] wp_upload_bits error:Array ( [error] => Invalid file type ) , trying custom function.
    2014-02-19 00:45.39: [WARNING] Extension not allowed:/www/MYDAILY-NEWS/htdocs/wp-content/uploads/sites/3M_DanielleBradberyWhiteDress630_021414.jpg?__SQUARESPACE_CACHEVERSION=1392414514852

    Plugin Author etruel


    as you can see in log this is not a plugin error.

    the image URL of your source is:

    The image URL is all the string included chars after “?”
    Wordpress checks the extension and see that there is not jpg, png or gif (etc) then return “Extension not allowed”

    I can make a filter for you as custom support. If you are interested can contact me on etruel [at] gmail [dot] com



    I apologize that here on this topic I bring but I would ask etruel:

    Is it possible to do this in a one Campain to put the image tag with a custom size. The problem is that it is one of the page where i get a news is redesigned their website and they are using very high-resolution images that do not fit mine. Please, is it possible to make a custom image tag as eg html tag to Post template in singel Campain something as:

    <img src=”<?php post_image(); ?>” width=”50%” height=”50%”/>

    Thanks in advance



    @datoseb: If you require assistance then, as per the Forum Welcome, please post your own topic.

    This topic has been resolved.



    @esmi thanks and apologize for that :))

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Enable first image / Featured Image’ is closed to new replies.