Home Forums Plugin Support WP User Frontend Pro Image Upload on form doesn't link to my custom field using Meta Key field

This topic is: not resolved

This topic contains 15 replies, has 3 voices, and was last updated by  Tareq Hasan 6 years, 2 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1386

    pmacadams
    Participant
    Post count: 6

    I have several custom fields setup that are images. I enter the correct Meta Key in the WPUF form field, but uploaded images don't connect.

    For example:

    my_image_customfield  —–>   I take this pre-existing custom field and set it up in a WPUF image upload field  —–> I go to the front end to use the WPUF form and create a post —–> The uploaded image doesn't appear

     

    Any advice?

    Thanks

    #1387

    Tareq Hasan
    Keymaster
    Post count: 2831

    Can you check the media section in admin panel and also the post edit screen in the admin panel and make sure the image is not uploaded?

    #1388

    pmacadams
    Participant
    Post count: 6

    The image is in the media library, but does not appear in the front end dash, or in the back end post edit.

    #1389

    Tareq Hasan
    Keymaster
    Post count: 2831

    Thats weird, if the image is in the media library, it should be attached to that post. And it should also be the back end post edit “WPUF Custom Fields” meta box. Can you regenerate the problem in the plugin demo area?

    #1390

    pmacadams
    Participant
    Post count: 6

    Tried it here to a lesser extent:

    http://demo.wedevs.com/wpuf/pmacadams-test/

    Is there a more in-depth documentation than the readme file that comes in the plugin?

    #1391

    Tareq Hasan
    Keymaster
    Post count: 2831

    Seeing the post, I can see that the image has been uploaded and attached to the meta key.

    There is documentation, but not yet extensive. Like the free version, if you are expecting the images will be shown in the post automatically, that doesn't happen in the pro version. There were lots of complain about the auto image appending feature, thats why I removed it.

    In the documentation FAQ area, there is a code snippet to show those images from a meta key. Let me know if thats enough for you.

    #1393

    pmacadams
    Participant
    Post count: 6

    Tried adding that code to the theme's functions file and the plugin's wpuf-functions.php file. Is there somewhere else I should be adding it?

    Can I contract you to take a look?

    #1394

    Tareq Hasan
    Keymaster
    Post count: 2831

    Oh, you added the code in wrong place. Trying adding the code in your themes single.php. That should work.

    #1395

    pmacadams
    Participant
    Post count: 6

    I'm using the Headway theme, which doesn't have a single.php file

    #1396

    Mahi
    Member
    Post count: 1555

    @pmacadams – then it can be page.php or post.php

    We dont have any experience with Headway theme. Better can you share a screenshot of your theme files ?

    #1397

    pmacadams
    Participant
    Post count: 6

    Looks like I can't upload photos here. I can give you admin/ftp access through email.  patmac1@gmail.com

    #1398

    Mahi
    Member
    Post count: 1555

    email us – support@ wedevs.com
    We need to know which file is using to show up single posts.
    as you mentioned uploaded image not attaching in to post, i might require admin details as well then.

    #1401

    Tareq Hasan
    Keymaster
    Post count: 2831

    Hello Patrick,

    The photos are uploaded fine, they are in the media gallery and perfectly attaching to the post. The uploaded image attachment ID are stored in the meta, which is also working nicely. I can't really make sense whats happening, why the images aren't showing. Can you forward your ftp details so I could take a look trying debugging?

    #1413

    Tareq Hasan
    Keymaster
    Post count: 2831

    I tried to debug, but the value was returning blank. That was not understandable why was that happening. May be some other plugin was overriding the same meta key? No idea. I changed the meta key in the form, seems like that fixed it. Now I see the image in edit screen at frontend and backend.

    #1417

    pmacadams
    Participant
    Post count: 6

    That makes sense. My other plugin that is creating custom fields may be in conflict. I took the new Meta Key you created for that image upload, and tried inserting it into the other plugin, which caused a conflict.

    Now that the image upload works, could you specify how to insert it into a post?
    Thank you for all this!

Viewing 15 posts - 1 through 15 (of 16 total)

The topic ‘Image Upload on form doesn't link to my custom field using Meta Key field’ is closed to new replies.