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

Forums Bug Reports WP user frontend pro integration

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

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

    i tried this code

    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



    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?


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


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


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


    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,




    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 )

    if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) {

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

    if ( empty( $address ) )

    //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 );


    Thanks fredajt !

    Much appreciated.

    Will try to bridge this…

    Tale care.



    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:

    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.