• Resolved sandervm86

    (@sandervm86)


    the picture isn’t showing on http://www.receptenmaker.nl/blog

    i asked support about it (kleo support) and they told me this :

    You’ll need to ask the developer how they they are storing the image location in the url. More than likely they are using their own meta_key in the postmeta table. Then around line 117 change

    $img_url = kleo_get_post_thumbnail_url();
    1

    to
    $img_url = get_post_meta( get_the_ID(), ‘the plugins meta_key name’, true );

    So first line is from the Kleo theme, and 2 i need from you 🙂
    Tnx in advange.

    Sander

    https://wordpress.org/plugins/external-featured-image/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nelio Software

    (@nelio)

    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.

    Thread Starter sandervm86

    (@sandervm86)

    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.

    Plugin Author Nelio Software

    (@nelio)

    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!

    Thread Starter sandervm86

    (@sandervm86)

    Sended you a mail, isnt working.

    Tnx in advange

    Thread Starter sandervm86

    (@sandervm86)

    Tnx for all the good support, it works great!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Not working on Kleo template’ is closed to new replies.