• Hi,

    Have a project where we want to automatically import a featured image for each post from Google Images, based on post title. Is this possible with this plugin. How?

    [ redundant link removed ]

    Thanks!

    • This topic was modified 5 years, 3 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcel

    (@marceljm)

    Hi, @wordmax.

    That’s not possible for now. In the future, if we have many other users interested on that, maybe this feature could be developed.

    Thread Starter wordmax

    (@wordmax)

    Thanks Marcel,

    Was hoping it would be possible to use/modify the shortcode, something like this, it won’t work like this, but it’s the general concept:

    // [custom_image]
    add_shortcode( 'custom_image', 'execute_custom_image' );
    function execute_custom_image() {
      return do_shortcode('[custom image from url="https://www.google.com/search?tbm=isch&source=hp&biw=1536&bih=790&ei=9vRAXYr7KMXy5gLdgolI&q=' . get_the_title() . '&oq=' . get_the_title() . '&gs_l=img.3..0l10.747.4194..4493...0.0..0.128.816.9j1......0....1..gws-wiz-img.....0.qQ--T5BNsdA&ved=0ahUKEwiKzuPOht7jAhVFuVkKHV1BAgkQ4dUDCAU&uact=5
    "]');
    }

    So if the post title was Brad Pitt, then the featured image would be pulled from the first result in Google images url.

    • This reply was modified 5 years, 3 months ago by wordmax.
    • This reply was modified 5 years, 3 months ago by wordmax.
    Plugin Author Marcel

    (@marceljm)

    Yes…

    I don’t see a reason to use shortcode. The image URL wouldn’t be enough? Why?

    Thread Starter wordmax

    (@wordmax)

    The idea is to dynamically generate a unique featured image for each post, based on the title of that post. Not to have to do each post manually.

    So whatever code is needed to accomplish this is the way to go.

    • This reply was modified 5 years, 3 months ago by wordmax.

    This is a really great time-saving idea!

    I would love to do the same thing – except I would like to have the image selected from my media library instead of Google.

    Any idea on how to do this?

    Thanks

    Plugin Author Marcel

    (@marceljm)

    Hi @djdefenda

    You should know the media library contains internal images only and FIFU doesn’t save images, only URLs. So, sorry, but I couldn’t understand your point.

    I found this forum via Google and comment was not specifically related to your plugin sorry but a general reply to Max’s comment in relation to;

    “dynamically generate a unique featured image for each post, based on the title of that post. Not to have to do each post manually”

    I’ve used your plugin in the past and it was excellent!

    If anyone has any ideas how I may accomplish the above please reply, cheers!

    Thread Starter wordmax

    (@wordmax)

    @djdefenda

    This is the plugin you should try:
    “Magic Post Thumbnail” – it’s a free WordPress plugin.

    There are other plugins that will show random images from your media library.
    Look in wordpress plugins for “featured image” or “random image”

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Google Images – How to set featured image based on title?’ is closed to new replies.