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.
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…