Forum: F.A.Q

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.

[Not a support question]Front End Integration GEO my WP and Directory Plugin WPMUDEV

Home Forums F.A.Q Front End Integration GEO my WP and Directory Plugin WPMUDEV

This topic contains 17 replies, has 3 voices, and was last updated by  Vindieselwalker 8 months, 4 weeks ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #32975

    wjmediadesign
    Participant

    Is there a way to integrate GEO my WP with the user front end for adding and editing listings? The plugin shows up automatically on the back-end listing editor, but i have not been able to figure out how to add it to the front end.

    Thanks,
    William

    #32990

    Eyal Fitoussi
    Keymaster

    Hello William,
    How exactly are you looking to integrate the two?
    1) Have the entire geolocation system with the map, locator button and so on in the front end.
    2) Simply make the location entered in the front-end searchable by GEO my WP.

    if 1 it is than I already looked into creating a complete add-on for this purpose which provide the user with the map and locator button in the front-end but I couldn’t do that because the plugin does not provide the required hooks.

    If 2 is what you looking for it might be easier, again, as long as there is a hook which being execute after form submission in the front end.

    I suggest you to check with the Directory plugin developer/s ( WPMUDEV ) and ask him/them if there is a hook that can be used right after the front-end form submission and if so which one it is.

    If I have the right hook I might be able to help you with number 2. Number 1 will require and extensive work only if the right hooks to be provided.

    #32989

    wjmediadesign
    Participant

    Thank you for the quick response. I reached out the the developers over at wpmudev and will get back to you with there answer shortly.

    I believe your option 2 will fit my needs. I am trying to use the GMW Search Form Widget to search custom taxonomies within a zip code radius.

    I am using the Listing plugin (which includes the Custom Press plugin) from WPMUDEV. Currently am using Custom Fields within Custom Press so front end users can add their address, city, zip, and state. So technically I believe I only need GEO my WP to search the custom field “zip code”.

    Any thoughts?

    I will get back to you shortly with the response from WPMUDEV.

    Thanks,
    William

    #32988

    Eyal Fitoussi
    Keymaster

    It will be possible as long the the right hook is provided. Usually forms ( front-end and back-end ) provide a hook that being executed right after the form submission. The hook should pass the fields value of the form as arguments. Using the hook ( and a custom function ) you will be able to grab the address entered by the user, geocode it and save it in GEO my WP database table. once a location is in the custom table its post will be searchable by GEO my WP forms.

    #32987

    wjmediadesign
    Participant

    Hi Eyal Fitoussi,

    I head back from the developers at wpmu. They said:

    “Directory Listing is a custom post type, so when it insert/update, you can use those WordPress native hook save_post_directory_listing or post_updated or wp_insert_post

    If you have any issues please don’t hesitate to let us know so we can assist”

    Here is a link to my post on their forum: http://premium.wpmudev.org/forums/topic/front-end-integration-geo-my-wp-and-directory-plugins

    Thanks,
    William

    Private Content Hidden
    #32986

    wjmediadesign
    Participant

    Hi Eyal Fitoussi,

    Just following up to see if you had a chance to look into this? Thanks 🙂

    William

    #32985

    Eyal Fitoussi
    Keymaster

    Add the code below to the functions.php file of your theme and give it a try:

    #32984

    wjmediadesign
    Participant

    Nothing happened when I added the above code to my functions file. I attached a screen shot to show you the front end integration still looks the same.

    I even tried some searches from the home page and kept getting “No results found”

    Thanks for your wonderful support and help with getting this figured out for me! 🙂

    Private Content Hidden
    #32983

    Eyal Fitoussi
    Keymaster

    Nothing should be added to the front-end. The script suppose to silently geocode and add the location data to GEO my WP database table on form submission. And once the location is on GEO my WP table the post should be searchable via GEO my WP form.

    I am not sure why it is not working for you. If you placed it in the correct functions.php file of your theme it then should work.

    Private Content Hidden
    #32982

    wjmediadesign
    Participant

    Do you have any other suggestions? I keen getting “No results found” after a search. I have tried the code in two separate themes and I am still getting the same results.

    Would you mind taking a deeper look into my website?

    Thanks,
    William

    #32981

    wjmediadesign
    Participant

    Thanks! 🙂

    Private Content Hidden
    #32980

    Eyal Fitoussi
    Keymaster
    This reply has been marked as private.
    #32979

    wjmediadesign
    Participant

    Update:

    Private Content Hidden
    #32978

    Eyal Fitoussi
    Keymaster

    Testing it now it seems to be working. I just created two listings from the front-end and they successfully added to database and showing in search results.

    Give it a try.

    #32977

    wjmediadesign
    Participant

    New listing seem to be working but why are none of the older listing getting pulled in?

    Thanks so much for your great support!

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.