Title: Problem with import fifu_input_url?
Last modified: December 3, 2016

---

# Problem with import fifu_input_url?

 *  Resolved [Merol93](https://wordpress.org/support/users/merol93/)
 * (@merol93)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/problem-with-import-fifu_input_url/)
 * Hello, theme I am working on, let users to post data by contact form 7 hook.
 *     ```
       //contact form 7 hook
       function tm_contactform7_hook($WPCF7_ContactForm) {
           $wpcf7 = WPCF7_Submission::get_instance();
       	if($wpcf7) {
               $posted_data = $wpcf7->get_posted_data();
   
               if(ot_get_option('user_submit',1)){
                   if(isset($posted_data['video-url']) || isset($posted_data['video-file']) || isset($posted_data['video-code'])){
                       $video_url = $posted_data['video-url'];
                       $video_title = isset($posted_data['video-title']) ? $posted_data['video-title'] : '';
       				$video_code = isset($posted_data['video-code']) ? $posted_data['video-code'] : '';
       				$rok = isset($posted_data['rok']) ? $posted_data['rok'] : '';
       				$fifu_input_url = isset($posted_data['fifu_input_url']) ? $posted_data['fifu_input_url'] : '';
                       $video_description = isset($posted_data['video-description']) ? $posted_data['video-description'] : '';
                       $video_excerpt = isset($posted_data['video-excerpt'])?$posted_data['video-excerpt'] : '';
                       $video_user = isset($posted_data['your-email']) ? $posted_data['your-email'] : '';
                       $video_cat = isset($posted_data['cat']) ? $posted_data['cat'] : '';
                       $video_tag = isset($posted_data['tag']) ? $posted_data['tag'] : '';
                       $video_status = ot_get_option('user_submit_status','pending');
                       $video_format = ot_get_option('user_submit_format','video');
   
                       $video_post = array(
                         'post_content'   => $video_description,
                         'post_excerpt'   => $video_excerpt,
                         'post_name' 	   => sanitize_title($video_title), //slug
                         'post_title'     => $video_title,
                         'post_status'    => $video_status,
                         'post_category'  => $video_cat,
                         'tags_input'	   => $video_tag,
                         'rok'	   		   => $rok,			
                         'fifu_input_url'	   		   => $fifu_input_url,						  
                         'post_type'      => 'post'
                       );
   
                       if($new_ID = wp_insert_post( $video_post, $wp_error )){
                           add_post_meta( $new_ID, 'tm_user_submit', $video_user );
   
                           if(!ot_get_option('user_submit_fetch',0)){
                               add_post_meta( $new_ID, 'fetch_info', 1);
                           }
                           set_post_format( $new_ID, $video_format );
                           $video_post['ID'] = $new_ID;
                           wp_update_post( $video_post );
   
                           if(isset($video_url)){
                               add_post_meta( $new_ID, 'tm_video_url', $video_url );
                           }
   
                           // video code
                           if(isset($posted_data['video-code'])){
                               add_post_meta( $new_ID, 'tm_video_code', $posted_data['video-code'] );
                           }
       		    //MY OWN HOOKS
                           if(isset($posted_data['rok'])){
                               add_post_meta( $new_ID, 'rok', $posted_data['rok'] );
                           }
                           if(isset($posted_data['fifu_input_url'])){
                               add_post_meta( $new_ID, 'fifu_input_url', $posted_data['fifu_input_url'] );
                           }              
       ```
   
 * I add my custom field “rok” by ACF and it’s working, but when i am trying to 
   save fifu_input_url it’s not working…
    -  This topic was modified 9 years, 6 months ago by [Merol93](https://wordpress.org/support/users/merol93/).

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

 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/problem-with-import-fifu_input_url/#post-8510757)
 * Hi, [@merol93](https://wordpress.org/support/users/merol93/).
 * Try to use “fifu_image_url” instead of “fifu_input_url”.
 *  Thread Starter [Merol93](https://wordpress.org/support/users/merol93/)
 * (@merol93)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/problem-with-import-fifu_input_url/#post-8510890)
 * Thanks for your help :)! It works great now! You have my 5/5 rating and God bless
   you :). Have a nice day! 🙂
 *  Plugin Author [fifu.app](https://wordpress.org/support/users/marceljm/)
 * (@marceljm)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/problem-with-import-fifu_input_url/#post-8510947)
 * Thanks a lot, [@merol93](https://wordpress.org/support/users/merol93/)!

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

The topic ‘Problem with import fifu_input_url?’ is closed to new replies.

 * ![](https://ps.w.org/featured-image-from-url/assets/icon-256x256.png?rev=2776609)
 * [Featured Image from URL (FIFU)](https://wordpress.org/plugins/featured-image-from-url/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-from-url/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-from-url/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-from-url/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-from-url/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-from-url/reviews/)

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 3 replies
 * 2 participants
 * Last reply from: [fifu.app](https://wordpress.org/support/users/marceljm/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/problem-with-import-fifu_input_url/#post-8510947)
 * Status: resolved