• Resolved mbyigit

    (@mbyigit)


    HI,
    I’m using your plugin for a long time.
    The content of the Website can not add an image from the panel because it is too much.
    Please add it to the custom field option.
    It would be really easy, please add a custom field.
    Example: nelio_external_url (custom field name)
    Please take this into consideration. Thank you so much.

    https://ww.wp.xz.cn/plugins/external-featured-image/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mbyigit

    (@mbyigit)

    Plugin Author David Aguilera

    (@davilera)

    Hi!

    Nelio already uses a custom field for storing the URL of the external featured image. It’s called _nelioefi_url. As you can see, the custom field is private (it starts with an underscore _). If you want to define featured images without accessing the WordPress Dashboard, you simply need to populate that field.

    If you can’t set the value of a private custom field, note you can change its name to whatever you want. For instance:

    add_filter( 'nelioefi_post_meta_key', 'nelioefi_change_field_name' );
    function nelioefi_change_field_name( $name ) {
      return 'nelio_external_url';
    }//end nelioefi_change_field_name()

    This, however, will only work from the moment you apply the function on. Any previous featured images will use the old custom field name, which means you’ll have to update your database with a SQL query such as:

    UPDATE wp_postmeta
    SET meta_key = 'nelio_external_url'
    WHERE meta_key = '_nelioefi_url';

    Warning: Before modifying your database, make sure you have a backup. Otherwise, you might corrupt it and “lose” your data.

    otechwebmaster

    (@otechwebmaster)

    Thanks to this post i managed to get some functionality together with the plug-in WPtouch 4.1.4 using the _nelioefi_url custom field.

    I’m hoping maybe in the future this will work little bit better, using the custom field _nelioefi_url does not show all images for some reason? When using it together with WPtouch 4.1.4 (the free version)

    Bear in mind that the Nelio External Featured Image again is a lifesaver 🙂 even without the WPtouch plug-in…

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

The topic ‘Custom field option ?’ is closed to new replies.