Forum: Bug Reports

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.

[Resolved]WP user frontend pro integration

Home Forums Bug Reports WP user frontend pro integration

This topic contains 8 replies, has 4 voices, and was last updated by  chukchee 2 years, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #38384

    fredajt
    Participant

    Hi, i’m having trouble width auto complete geolocalisation to a custom post type

    i tried this code http://docs.geomywp.com/geo-wp-wp-user-front-end-integration/

    but it doesn’t work since i’ve upgraded.

    Now the add_action is a bit different:

    add_action(‘wpuf_add_post_after_insert’, ‘gmw_update_location_via_wpuf’, 10, 1 );
    add_action(‘wpuf_edit_post_after_update’, ‘gmw_update_location_via_wpuf’, 10, 1 );

    I changed it but it doesn’t work.

    Thank you for help

    #38448

    Eyal Fitoussi
    Keymaster

    Hi,

    but it doesn’t work since i’ve upgraded.

    I assume that you are referring to User Front-end plugin ?

    Which version are you using now?

    Is it the free or the paid version?

    #38450

    fredajt
    Participant

    Hi, thank you for answer, it is the 2.2.7 paid version of wpuf and gmw 2.6.0.2

    #38533

    Eyal Fitoussi
    Keymaster

    If you can email me the pro version ( zip file to info@geomywp.com ) I will take a look at it.

    #38880

    fredajt
    Participant

    Hi my problem is resolved by installing the beta version of gmw.

    #38883

    anticosti
    Participant

    Hi fredajt,

    I’ll also have to use Frontend User Pro with Geo my WP. Do you think you could share the code to put in functions.php. The code that got you working this Duo together 😉

    Thanks in advance,

    Oh BTW: some are having problems with the Frontend User pro upgrade.

    Kind Regards,

    Yves

     

    #38887

    fredajt
    Participant

    I use the code below but it doesn’t works properly : it works on post creation but not when updating

    function gmw_update_location_via_wpuf(  $post_id ) {

    //make sure we have post ID
    if ( !$post_id )
    return;

    if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) {
    return;
    }

    //change meta_field_name to the custom field of the address field
    $address = get_post_meta( $post_id, ‘adresse’, true );

    if ( empty( $address ) )
    return;

    //include geocoder file
    include_once( GMW_PT_PATH .’/includes/gmw-pt-update-location.php’ );

    if ( function_exists( ‘gmw_pt_update_location’ ) ) {

    //setup geocoder args
    $args = array(
    ‘post_id’         => $post_id,
    ‘post_title’      => get_the_title( $post_id ),
    ‘address’         => $address
    );
    //run geocoder function
    gmw_pt_update_location( $args );
    }
    }
    //update data of new post
    add_action(‘wpuf_add_post_after_insert’, ‘gmw_update_location_via_wpuf’, 10, 1 );
    //update data when post updated
    add_action( ‘wpuf_edit_post_after_update’, ‘gmw_update_location_via_wpuf’, 10, 1 );

    #38889

    anticosti
    Participant

    Thanks fredajt !

    Much appreciated.

    Will try to bridge this…

    Tale care.

    Yves

    #56134

    chukchee
    Participant

    maybe you guys can help me out.
    ive used the code and it worked out really well on my site but now it just dont work anymore. ive used to deactivate all plugins and used different themes but no luck.
    it does not get the location anymore.

    website is: http://www.goodsitter.de

    i dont get the problem / on my other pages it still works great

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.