Featured Image from Custom field value

Hello @mrskt00

I’m really sorry, but at the moment this isn’t a possibility. However, I will note the request down in our feature requests list for the developers to analyse and see if it’s feasible to implement as an advanced developer tool.

Keep an eye out for updates, as we roll in new (advanced) features quite frequently. 🙂

Thanks!

@mrskt00 Hello!

First of all, the post_thumbnail_html filter works just fine with Blocksy, I just gave it a go. But, in order for it to work, the post needs to have a real featured image attached to it (that is, has_post_thumbnail() has to return true for that post). Otherwise, the filter won’t even be called.

There are two options here (I would go with the 2nd one honestly):

  1. Re-write the blocksy_get_featured_image_output() function in a child theme from the inc/components/single/single-helpers.php. Re-write the function implementation to pull the image from your custom source. Note: this will be quite tricky to implement and you will be on your own to maintain this function.
  2. Follow this steps:
  • Rewrite your custom field to use attachment IDs (not URLs). I understand that this might or might not be possible, depending on where you’re taking your images from.
  • Implement a custom filter that we will give to you that will pull the image from that new source.

If you are okay with strategy #2 — please let us know and we’ll implement the filter in the next Blocksy release. We will also give you a beta version with the implementation and also an example code snippet that you can use as a reference.

If you absolute must use URLs and not attachment IDs, please also let us know and we’ll think of something.

Waiting for your reply so that we know how to move forward.

Thanks and all the best!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer