Hi! I’ve been looking into your issue and I think I’ve found a solution. Our plugin uses a post_meta
value to store the URL of the external featured image. By default, it’s called _nelioefi_url
. I’ve seen that WP User Frontend let’s you specify which custom fields (that is, post metas) should be editable using their interface.
Does this means that you can add a custom field whose name is “_nelioefi_url”? Unfortunately, no. If you create such a custom field, the plugin will rename it to cf__nelioefi_url
, because it automatically prepends the cf_
string to your custom fields’ names.
In order to overcome this issue, I uploaded a new version of our plugin. With it, you can modify the post meta key in which the external image’s URL will be stored. So, this is what you have to do to fix the issue:
- Update the plugin
- Create a new custom field in WP User Frontend. Name it
nelioefi_url
(note it doesn’t start with an underscore).
- Add the following function in your theme’s
function.php
file:
add_filter( 'nelioefi_post_meta_key', 'nelioefi_compat_with_wpuf' );
function nelioefi_compat_with_wpuf( $key ) {
return 'cf_nelioefi_url';
}
And that’s it! This function will hook to the filter we added in the new version of our plugin and make sure that external featured images are saved and retrieved from a custom field named cf_nelioefi_url
(which is the concatenation of cf_
and the name in step 2 nelioefi_url
).
If you already had posts with external featured images, you’ll have to manually update them. Simply access your database, go to the table wp_postmeta
and update the meta_key
s from _nelioefi_url
to cf_nelioefi_url
.
I hope this helps you! Please let us know if it worked ??