Simone
Forum Replies Created
-
AuthorPosts
-
October 24, 2014 at 5:26 pm in reply to: Can I manually add regions and cities instead of Google adding them #19466
My bad, you can restrict regions.
Just manually create 4 cities for the 4 regions you need.
Than go to GD >> MultiLocations and click on “Enable Selected Regions”, select in the field below your 4 regions and your users will be forced to only submit listings for that 4 regions.
It seems that your hosting has problemi with permissions, can you please give me your FTP login so i can check?
thanks
S.October 24, 2014 at 3:34 pm in reply to: Can I stop the system getting my location – starting with all nationwide #19451Hello Adrian, yes, disable the GeoDirectory Share Location plugin
Hello Valérie, please post your url and your login details,
S.Hello, this is not natively possible, only with custom code I guess.
October 24, 2014 at 2:47 pm in reply to: Can I manually add regions and cities instead of Google adding them #19436Hello, you (or you can users) can add a listing choosing the city they want, but google will autofill the Zipcode and the region according to the lat/lon
October 23, 2014 at 9:53 pm in reply to: Review Redirect & Location Changer doesn't work after update #19352– Ive checked your website, the location switcher with the shortcode is not working, somehow ajax won’t load, tried using the switcher in the menubar and it works.
EDIT: it appears that the shortcode is working only on GDF, the issue will be fixed in the next release.– the 404 error after submitting a review is happening because the redirect url has a /comment-page-1/ in the url, which is not a GD thing, so the page results in a 404. That’s possibly due to some of your plugin (you have 71 active plugins…!) that will plays with comments too.
– you see multiple events because that event is repeated daily. Check the event and you’ll see it’s set to be repeated from the 23rd to the 30th of october (see attach)
October 23, 2014 at 9:20 pm in reply to: Review Redirect & Location Changer doesn't work after update #19340Hello Chris, could you please write your URL and login details so we can have a look?
thanksHi Stacey, to edit the Search button, use the .po file inside the languages folder (in the geodirectory plugin in /wp-content/plugins) and follow http://docs.wpgeodirectory.com/translate-core/ .
About the other issues: it seems that something is out of the search div, do you customized something in your template (css etc.. ? )
Hello Stacey, did you check if the menu is set (in Appearance/Menu)?
And also, if the menu is set on GD (in Geodirectory/Design/ and then in the Navigation tab)
for your convenience, I’ve just added a file
Ok, put this code inside the functions.php in your child theme and you will preserve your modifications in the future releases
remove_action('geodir_details_main_content' , 'geodir_details_taxonomies', 10); add_action( 'geodir_details_main_content', 'geodir_category_custom',10 ); function geodir_category_custom() { global $preview,$post;?> <p class="geodir_post_taxomomies clearfix"> <?php $taxonomies = array(); //print_r($post) ; if($preview) { $post_type = $post->listing_type; $post_taxonomy = $post_type.'category' ; $post->$post_taxonomy = $post->post_category[$post_taxonomy ] ; } else { $post_type = $post->post_type; $post_taxonomy = $post_type.'category' ; } //{ $post_type_info = get_post_type_object( $post_type ); $listing_label = $post_type_info->labels->singular_name; if(!empty($post->post_tags)) { if(taxonomy_exists($post_type.'_tags')): $links = array(); $terms = array(); // to limit post tags $post_tags = trim($post->post_tags,","); $post_id = isset($post->ID) ? $post->ID : ''; $post_tags = apply_filters('geodir_action_details_post_tags', $post_tags, $post_id); $post->post_tags = $post_tags; $post_tags = explode(",",trim($post->post_tags,",")); foreach($post_tags as $post_term){ /* $post_term = trim($post_term); if($insert_term = term_exists( $post_term, $post_type.'_tags' )){ $term = get_term_by( 'name', $post_term, $post_type.'_tags'); }else{ $insert_term = wp_insert_term($post_term, $post_type.'_tags'); $term = get_term_by( 'name', $post_term, $post_type.'_tags'); } if(! is_wp_error( $term )) { //$links[] = "<a href='" . esc_attr( get_tag_link($term->term_id) ) . "'>$term->name</a>"; // fix tag link on detail page $links[] = "<a href='" . esc_attr( get_term_link($term->term_id, $term->taxonomy) ) . "'>$term->name</a>"; $terms[] = $term; } */ // fix slug creation order for tags & location $post_term = trim($post_term); $priority_location = false; if($insert_term = term_exists( $post_term, $post_type.'_tags' )){ $term = get_term_by( 'name', $post_term, $post_type.'_tags'); }else{ $post_country = isset($_REQUEST['post_country']) && $_REQUEST['post_country']!='' ? $_REQUEST['post_country'] : NULL; $post_region = isset($_REQUEST['post_region']) && $_REQUEST['post_region']!='' ? $_REQUEST['post_region'] : NULL; $post_city = isset($_REQUEST['post_city']) && $_REQUEST['post_city']!='' ? $_REQUEST['post_city'] : NULL; $match_country = $post_country && sanitize_title($post_term) == sanitize_title($post_country) ? true : false; $match_region = $post_region && sanitize_title($post_term) == sanitize_title($post_region) ? true : false; $match_city = $post_city && sanitize_title($post_term) == sanitize_title($post_city) ? true : false; if ($match_country || $match_region || $match_city) { $priority_location = true; $term = get_term_by( 'name', $post_term, $post_type.'_tags'); } else { $insert_term = wp_insert_term($post_term, $post_type.'_tags'); $term = get_term_by( 'name', $post_term, $post_type.'_tags'); } } if(! is_wp_error( $term )) { //$links[] = "<a href='" . esc_attr( get_tag_link($term->term_id) ) . "'>$term->name</a>"; // fix tag link on detail page if ($priority_location) { $links[] = "<a href=''>$post_term</a>"; } else { $links[] = "<a href='" . esc_attr( get_term_link($term->term_id, $term->taxonomy) ) . "'>$term->name</a>"; } $terms[] = $term; } // } if(!isset($listing_label)){$listing_label='';} $taxonomies[$post_type.'_tags'] = wp_sprintf('%s: %l', ucwords($listing_label.' '. __('Tags' , GEODIRECTORY_TEXTDOMAIN) ), $links, (object)$terms); endif; } if(!empty($post->$post_taxonomy)) { $links = array(); $terms = array(); $post_term = explode(",",trim($post->$post_taxonomy,",")); $post_term = array_unique($post_term); if(!empty($post_term)){ foreach($post_term as $post_term){ $post_term = trim($post_term); if($post_term != ''): $term = get_term_by( 'id', $post_term, $post_taxonomy); $links[] = "<a href='".esc_attr( get_term_link($term,$post_taxonomy) ) . "'>$term->name</a>"; $terms[] = $term; endif; } } if(!isset($listing_label)){$listing_label='';} $taxonomies[$post_taxonomy] = wp_sprintf('%s: %l', ucwords( __('Area of Laws' , GEODIRECTORY_TEXTDOMAIN)), $links, (object)$terms); } if(isset($taxonomies[$post_taxonomy])){ echo '<span class="geodir-category">' . $taxonomies[$post_taxonomy] . '</span>'; } if(isset($taxonomies[$post_type.'_tags'])) echo '<span class="geodir-tags">' . $taxonomies[$post_type.'_tags'] . '</span>'; ?> </p> <?php }
Hello, login details are incorrect
ERROR: The password you entered for the username geodirectory is incorrect
Hello, I checked and the search for location and its not giving result (for ZIP or city). Could you please give us your login details in a private reply so we can check?
Thanks
S.Hi Wes, what you can do, for the moment, is to edit the geodirectory_template_actions.php which in the geodirectory folder.
Found this block of code:if(!isset($listing_label)){$listing_label='';} $taxonomies[$post_taxonomy] = wp_sprintf('%s: %l', ucwords($listing_label.' '. __('Category' , GEODIRECTORY_TEXTDOMAIN)), $links, (object)$terms);
and change it to
if(!isset($listing_label)){$listing_label='';} $taxonomies[$post_taxonomy] = wp_sprintf('%s: %l', ucwords( __('Areas of Law' , GEODIRECTORY_TEXTDOMAIN)), $links, (object)$terms);
this,obviously, is a temporary fix.
I think a function can be created, I will check this as soon as I will be home -
AuthorPosts