problem with custom field

This topic contains 4 reply and 2 voices, and was last updated by nicolastergiopoulos@gmail.com 10 years, 9 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
July 7, 2013 at 3:24 pm 5650
nicolastergiopoulos@gmail.com Hello. I have bought your plugin from a suggestion on AIThemes. theme directory. It seems that you are familiar with that one. I have done the instructions that was posted on forum but i have no chance with the front postin. http://holistic-therapies.gr/%CE%BA%CE%B1%CF%84%CE%B1%CF%87%CF%8E%CF%81%CE%B7%CF%83%CE%B7/ i am sending you the page so you can see what i mean. Can you help me find what i did wrought? thanks a lot
July 7, 2013 at 4:12 pm 5659
Tareq Hasan Tareq Hasan

I see the form is reloading after submission. Thats the problem? In that case change the redirect settings in the “Post Settings” tab on the form.

July 7, 2013 at 6:46 pm 5661
nicolastergiopoulos@gmail.com nicolastergiopoulos@gmail.com

allo.
no thats no the problem.
On test post.
http://holistic-therapies.gr/%CE%BA%CE%B1%CF%84%CE%B1%CF%87%CF%8E%CF%81%CE%B7%CF%83%CE%B7/
the adreess and telephone are not in the right place.
Check that one
http://holistic-therapies.gr/item/demo-basic/
adrress and telephone are in the right position.

It is about matching the custom fields. I already have put the chunk of code on your wpfu-fuctions.php

function wpufe_ait_integration( $post_id ) {
$def_lat = $def_long = 0;
if ( isset( $_POST[‘location’] ) ) {
list( $def_lat, $def_long ) = explode( ‘,’, $_POST[‘location’] );
}
$ait_dir_item = array (
‘address’ => isset( $_POST[‘address’] ) ? $_POST[‘address’] : ”,
‘gpsLatitude’ => $def_lat,
‘gpsLongitude’ => $def_long,
‘streetViewLatitude’ => ”,
‘streetViewLongitude’ => ”,
‘streetViewHeading’ => ‘0’,
‘streetViewPitch’ => ‘0’,
‘streetViewZoom’ => ‘0’,
‘telephone’ => isset( $_POST[‘telephone’] ) ? $_POST[‘telephone’] : ”,
’email’ => isset( $_POST[’email’] ) ? $_POST[’email’] : ”,
‘web’ => isset( $_POST[‘web’] ) ? $_POST[‘web’] : ”,
‘hoursMonday’ => isset( $_POST[‘hours_monday’] ) ? $_POST[‘hours_monday’] : ”,
‘hoursTuesday’ => isset( $_POST[‘hours_tuesday’] ) ? $_POST[‘hours_tuesday’] : ”,
‘hoursWednesday’ => isset( $_POST[‘hours_wednesday’] ) ? $_POST[‘hours_wednesday’] : ”,
‘hoursThursday’ => isset( $_POST[‘hoursThursday’] ) ? $_POST[‘hoursThursday’] : ”,
‘hoursFriday’ => isset( $_POST[‘hoursFriday’] ) ? $_POST[‘hoursFriday’] : ”,
‘hoursSaturday’ => isset( $_POST[‘hoursSaturday’] ) ? $_POST[‘hoursSaturday’] : ”,
‘hoursSunday’ => isset( $_POST[‘hoursSunday’] ) ? $_POST[‘hoursSunday’] : ”,
‘alternativeContent’ => isset( $_POST[‘alternativeContent’] ) ? $_POST[‘alternativeContent’] : ”,
);

update_post_meta( $post_id, ‘_ait-dir-item’, $ait_dir_item );
}

add_action( ‘wpuf_add_post_after_insert’, ‘wpufe_ait_integration’ );
add_action( ‘wpuf_edit_post_after_update’, ‘wpufe_ait_integration’ );

thanks a lot

July 7, 2013 at 7:15 pm 5663
Tareq Hasan Tareq Hasan

The meta keys for address and telephone should be all lower case, check it on your form.

July 7, 2013 at 7:23 pm 5664
nicolastergiopoulos@gmail.com nicolastergiopoulos@gmail.com

yes.
they was but same problem.
i change to see if it will be better.
I change that again buck but same problem with new post.
thanks

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