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

    (@nelio)

    Hi! Honestly, I have no idea :-S But we’ll investigate it!

    Thread Starter Livsy

    (@livsy)

    Thank you for support!

    Plugin Author Nelio Software

    (@nelio)

    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:

    1. Update the plugin
    2. Create a new custom field in WP User Frontend. Name it nelioefi_url (note it doesn’t start with an underscore).
    3. 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_keys from _nelioefi_url to cf_nelioefi_url.

    I hope this helps you! Please let us know if it worked ??

    Thread Starter Livsy

    (@livsy)

    Hi again!

    Wow! I did not expect such a great support! This is the first time I see something like that ??

    And YES – it works! You are really a very good professional!

    Thank you!

    But I have the last question O:-)

    I am new at working with SQL. Can you explain, please, how can I update the meta_keys? I found it in the table wp_postmeta, but I really don’t know what I should do next.

    Thank you again ??

    Plugin Author Nelio Software

    (@nelio)

    Hi again. First of all, make sure you have a backup of your database (it’s highly recommended before modifying anything; this way, if something goes wrong, you’ll be able to rollback to your previous version). This is the SQL query you need:

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

    And that’s it! All entries should be updated, now ??

    Thread Starter Livsy

    (@livsy)

    It works!

    If someone wants to do the same, I can recommend to hide WP User Frontend custom field from post by this css code:

    .wpuf_customs {
        display: none;
    }

    Everything is cool. Thanks again!

    Hello ??
    Thanks a lor for this awesome plugin!

    [EDIT] Sorry my fault! I found how to fix it! ^^ (did not copy the function correctly)

    Keep up the good work! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Integration in WP User Frontend plugin’ is closed to new replies.