Hi! Yes, the developer is completely right, you just need to access a post meta called _nelioefi_url, which will give you the URL of the external featured image.
I tryed : $img_url = _nelioefi_url();
and $img_url = get_post_meta( get_the_ID(), ‘_nelioefi_url’, true );
Both not working what am i doing wrong 🙂
(im not good in this shit)
Already tnx for helping me out.
Well, it looks like it’s going to be a little bit more complicated. First of all, we’ll assume not all your posts use external featured images, so you’ll have to do something like this:
$img_url = kleo_get_post_thumbnail_url();
if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( get_the_ID() ) ) {
$img_url = nelioefi_get_thumbnail_src( get_the_ID() );
}
With the previous piece of code, you’ll be able to retrieve the source of the external featured image. Note that functions uses_nelioefi and nelioefi_get_thumbnail_src are both defined by our plugin. And, in case you’re curious, nelioefi_get_thumbnail_src uses the aforementioned function get_post_meta with the post_name = nelioefi_url.
Now, the code I’m proposing here is essentially the same code we discussed before, with some tiny improvements. If this is not working, you’ll have to check where is the $img_url value being used (probably as the src value of an img tag). Unfortunately, without access to the theme I cannot give you any further clues. If you cannot solve the issue, please send me a copy of your theme (customers AT neliosoftware DOT com) and I’ll gladly take a look at it!
Sended you a mail, isnt working.
Tnx in advange
Tnx for all the good support, it works great!