Home Forums Plugin Support WP User Frontend (Free Version) problem with custom field

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  nicolastergiopoulos@gmail.com 5 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5650

    nicolastergiopoulos@gmail.com
    Participant
    Post count: 4

    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

    #5659

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #5661

    nicolastergiopoulos@gmail.com
    Participant
    Post count: 4

    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

    #5663

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5664

    nicolastergiopoulos@gmail.com
    Participant
    Post count: 4

    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 5 posts - 1 through 5 (of 5 total)

The topic ‘problem with custom field’ is closed to new replies.