GeoDirectory SupportDisable Select Map View – GeoDirectory Support https://wpgeodirectory.com/support/topic/disable-select-map-view/feed Tue, 03 Feb 2026 14:57:20 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6126 <![CDATA[Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6126 Wed, 25 Jun 2014 14:57:11 +0000 PSI Hi,

Is it possible to disable this selection in reg. process via functions.php?

Thanks for your help.

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6173 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6173 Wed, 25 Jun 2014 18:42:55 +0000 Paolo Not it isn’t, the only way to hide it would be to move the add-listing.php template within your child theme and comment it out.

Thx

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6433 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6433 Fri, 27 Jun 2014 08:30:20 +0000 PSI Hi,

I just want to deactivate Map View option cant find it in the file you mentioned.

Thx for your help in advance

PSI

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6524 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6524 Fri, 27 Jun 2014 18:00:31 +0000 Paolo Hi,

within that template, there is this action:



do_action( 'geodir_add_listing_form');

That is the part calling the form.

Now go to geodirectory/geodirectory_template_actions.php

and search : geodir_add_listing_form

You will find this




add_action( 'geodir_add_listing_form', 'geodir_action_add_listing_form',10);

function geodir_action_add_listing_form(){
// code of the function
}

The 1st line creates the action the 2nd line is the function called by the action.

In your theme functions.php you can add this:



// 1st you need to remove the default form with this
remove_action( 'geodir_add_listing_form', 'geodir_action_add_listing_form',10);

// 2nd add a new form changing the name of the function 
add_action( 'geodir_add_listing_form', 'geodir_action_add_listing_form_custom',10);

//3rd change you function as needed
function geodir_action_add_listing_form_custom(){
// copy the original function and modify it as you wish
}

Hope this helps… 🙂

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6569 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6569 Sat, 28 Jun 2014 02:06:28 +0000 purpleedge Thanks Paolo, very useful.

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6788 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6788 Mon, 30 Jun 2014 11:09:47 +0000 PSI Hi Paolo,

Thanks for this… I am still looking for deactivating select map view :/ I am sorry but I cant find it… any hints?

Thanks
PSI

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6789 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6789 Mon, 30 Jun 2014 11:11:32 +0000 PSI seems to be packed in this:

<?php

$package_info = array() ;

$package_info = geodir_post_package_info($package_info , $post);

geodir_get_custom_fields_html($package_info->pid,’all’,$listing_type);?>

]]>
https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6855 <![CDATA[Reply To: Disable Select Map View]]> https://wpgeodirectory.com/support/topic/disable-select-map-view/#post-6855 Mon, 30 Jun 2014 19:38:39 +0000 Paolo Best way to proceed would have been to search in all file inside folder directory (dreamweaver has this option and many other editor do…) the function:

geodir_get_custom_fields_html

which is is custom_fields_functions.php

It is not going to be easy to disable the selection and set antherone as default.

I’m not 100% sure I would be able to do it… this is as far as I can help with this.

Thx

]]>