• Resolved woodybruh

    (@woodybruh)


    So I’m using Gravity Forms and Advanced post creation to create new business users via ACF. Is there a way I can populate the Geo My WP section in the same way it populates the ACF fields so when ACF creates the new post, all the information for the business is already filled in and I don’t have to manually go in and copy the information over?

    Also, when it displays the results, it’s showing the taxonomies which is fine, but I don’t want them to be hyperlinked, is there a way to remove the hyperlinks and just show the text?

    • This topic was modified 5 months ago by woodybruh. Reason: Added a question
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @woodybruh,

    I apologize for not replying sooner.

    1. If you are looking to pass the address information entered during the submission of the ACF form, then have a look at the Meta Fields Geolocation extension. It allows you to sync a specific custom fields with GEO my WP. So whenever that custom fields is updated with an address, it will also get updated in GEO my WP’s database.
    2. Use the script below to disable the hyperlink
    function gmw_custom_disable_terms_hyperlink( $args ) {

    $args['terms_link'] = 0;

    return $args;
    }
    add_filter( 'gmw_post_taxonomies_list_args', 'gmw_custom_disable_terms_hyperlink', 50 );

    I hope this helps.

    Let me know if you have additional questions.

    Thread Starter woodybruh

    (@woodybruh)

    Hi Eyal thats great thankyou!

    The only other question I had is, is there an easier way to edit the search result cards?

    Currently I’ve gone into the actual template file to make edits, but obviously, when theres an update they get reverted. This is the code I’m using to change them currently:

    <?php

    /**

    ?* GEO my WP Search Results Template.

    ?*

    ?* To modify this template file, copy this folder with all its content and place it

    ?*

    ?* in the theme's or child theme's folder of your site under:

    ?*

    ?* your-theme's-or-child-theme's-folder/geo-my-wp/posts-locator/search-results/

    ?*

    ?* You will then be able to select your custom template from the "Search Results Templates" select dropdown option in the "Search Results" tab of the form editor.

    ?*

    ?* It will be named as "Custom: %folder-name%".

    ?*

    ?* @param $gmw? ( array ) the form being used

    ?*

    ?* @param $gmw_form ( object ) the form object

    ?*

    ?* @param $post ( object ) post object in the loop

    ?*

    ?* @package geo-my-wp

    ?*/

    ?>

    <div id="gmw-single-post-<?php echo absint( $post->ID ); ?>" class="<?php gmw_object_class( $post, $gmw ); ?>">

    ? ? <div class="gmw-item-inner">

    ? ? ? ? <?php do_action( 'gmw_search_results_loop_item_start', $post, $gmw ); ?>

    ? ? ? ? <div class="gmw-item-content">

    ? ? ? ? ? ? <?php gmw_search_results_distance( $post, $gmw ); ?>

    ? ? ? ? ? ? <h3 class="gmw-item gmw-item-title">

    ? ? ? ? ? ? ? ? <?php gmw_search_results_linked_title( get_permalink(), get_the_title(), $post, $gmw ); ?>

    ? ? ? ? ? ? </h3>

    ? ? ? ? ? ? <?php echo do_shortcode('[site_reviews_summary assigned_posts="post_id" hide="bars, summary"]'); ?><br>

    ? ? ? ? ? ? <?php do_action( 'gmw_search_results_loop_content_start', $post, $gmw ); ?>

    ? ? ? ? ? ? <?php gmw_search_results_post_excerpt( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php gmw_search_results_meta_fields( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php gmw_search_results_location_meta( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php gmw_search_results_hours_of_operation( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php gmw_search_results_taxonomies( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php gmw_search_results_directions_link( $post, $gmw ); ?><br>

    ? ? ? ? ? ? <?php do_action( 'gmw_search_results_loop_content_end', $post, $gmw ); ?>

    ? ? ? ? </div>

    ? ? ? ? <div class="gmw-item-footer">

    ? ? ? ? ? ? <?php gmw_search_results_address( $post, $gmw ); ?>

    ? ? ? ? ? ? <?php gmw_search_results_featured_image( $post, $gmw ); ?>

    ? ? ? ? </div>

    ? ? ? ? <?php do_action( 'gmw_search_results_loop_item_end', $post, $gmw ); ?>

    ? ? </div>

    </div>

    If theres an easier way to keep them permanently looking this way that would be great.

    Cheers,

    Ben

    Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi Ben,

    Yes, you can copy that search results folder into

    your-theme's-or-child-theme's-folder/geo-my-wp/posts-locator/search-results/

    Once done so, go to the form editor -> Search Results, and select your template from the Results Template select box. It will be named “Custom: your folder name”.

    I hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.