Image Upload on form doesn't link to my custom field using Meta Key field

This topic contains 15 reply and 3 voices, and was last updated by Tareq Hasan 11 years ago
Viewing 15 Posts - 1 through 15 (of 15 total)
Author Posts
March 21, 2013 at 9:13 pm 1386
Tareq Hasan 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
March 21, 2013 at 9:23 pm 1387
Tareq Hasan Tareq Hasan

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?

March 21, 2013 at 9:46 pm 1388
pmacadams pmacadams

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

March 21, 2013 at 9:55 pm 1389
Tareq Hasan Tareq Hasan

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?

March 21, 2013 at 10:04 pm 1390
pmacadams pmacadams

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?

March 21, 2013 at 10:11 pm 1391
Tareq Hasan Tareq Hasan

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.

March 21, 2013 at 10:34 pm 1393
pmacadams pmacadams

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?

March 21, 2013 at 10:37 pm 1394
Tareq Hasan Tareq Hasan

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

March 21, 2013 at 10:44 pm 1395
pmacadams pmacadams

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

March 21, 2013 at 11:06 pm 1396
Mahi Mahi

@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 ?

March 21, 2013 at 11:12 pm 1397
pmacadams pmacadams

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

March 21, 2013 at 11:21 pm 1398
Mahi Mahi

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.

March 22, 2013 at 5:37 am 1401
Tareq Hasan Tareq Hasan

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?

March 22, 2013 at 3:35 pm 1413
Tareq Hasan Tareq Hasan

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.

March 22, 2013 at 4:56 pm 1417
pmacadams pmacadams

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!

March 22, 2013 at 5:39 pm 1419
Tareq Hasan Tareq Hasan

I’ve updated the documentation, take a look. It’ll require the latest version 2.1, which can be downloaded from your account.

There is a automatic updater option added in the new version. Providing your email and license key will give you new version update right from your WordPress dashboard.

Viewing 15 Posts - 1 through 15 (of 15 total)