Import Issues

This topic contains 36 replies, has 3 voices, and was last updated by  Anitra Larsen 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #519674

    Alex Rollin
    Moderator
    Post count: 27815

    The snippet will work for the frontend add-listing page. Try it there and let us know.

    I will ask the developers if there is a workaround.

    #519696

    Kiran
    Moderator
    Post count: 7069

    Hi Anitra,

    Previous snippet will work only fro frontend add/edit listing page. To filter map name on backend add/edit listing page, try following PHP snippet.

    
    
    /**
     * Load Google map on admin add/edit listing page.
     */
    function gd_snippet_admin_add_listing_map_name( $map ) {
        global $post, $pagenow;
    
    	if( ( 'edit.php' === $pagenow || 'post.php' === $pagenow || 'post-new.php' == $pagenow ) && ! empty( $post->post_type ) && geodir_is_gd_post_type( $post->post_type ) ) {
    		$map = 'google'; // google or osm
    	}
    
        return $map;
    }
    add_filter( 'geodir_map_name', 'gd_snippet_admin_add_listing_map_name', 20, 1 );

    Regards,
    Kiran

    #519908

    Anitra Larsen
    Full Member
    Post count: 52

    Perfect! That works great!

    I met with the client yesterday and she is VERY happy with the directory improvements we’ve made to the site. One final question: we are using the GeoDirectory Events add on and our events often re-use images that are already uploaded to the website. BUT when we add a new event, we can only upload a new image, we can’t select from the existing media library. Is there a snippet available to allow access to the media library for your plugin?

    #520253

    Kiran
    Moderator
    Post count: 7069

    Hi Anitra,

    Sorry, at the moment there is no hook available to achieve that because we use our own method to assign image to the listing.

    Regards,
    Kiran

    #520270

    Anitra Larsen
    Full Member
    Post count: 52

    Bummer… could we pay to have this feature developed? Kiran – are you available for hire to customize GeoDirectory? (My client is also curious about having an events slider/carousel created…but I know this is definitely not part of the scope for support.)

    #520383

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #520445

    Anitra Larsen
    Full Member
    Post count: 52

    Ok. Thank you for that info and for all your help!

Viewing 7 posts - 31 through 37 (of 37 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket