Simone

Forum Replies Created

Viewing 15 posts - 2,161 through 2,175 (of 2,874 total)
  • Author
    Posts

  • Simone
    Expired Member
    Post count: 3515

    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.

    in reply to: pb images avada #19454

    Simone
    Expired Member
    Post count: 3515

    It seems that your hosting has problemi with permissions, can you please give me your FTP login so i can check?
    thanks
    S.


    Simone
    Expired Member
    Post count: 3515

    Hello Adrian, yes, disable the GeoDirectory Share Location plugin

    in reply to: pb images avada #19444

    Simone
    Expired Member
    Post count: 3515

    Hello Valérie, please post your url and your login details,
    S.

    in reply to: Limited Number of Listings Depending on Package #19440

    Simone
    Expired Member
    Post count: 3515

    Hello, this is not natively possible, only with custom code I guess.


    Simone
    Expired Member
    Post count: 3515

    Hello, 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

    in reply to: Review Redirect & Location Changer doesn't work after update #19352

    Simone
    Expired Member
    Post count: 3515

    – 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)

    in reply to: Review Redirect & Location Changer doesn't work after update #19340

    Simone
    Expired Member
    Post count: 3515

    Hello Chris, could you please write your URL and login details so we can have a look?
    thanks

    in reply to: Search Widge Issue #19302

    Simone
    Expired Member
    Post count: 3515

    Hi 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.. ? )

    in reply to: Some Update Problems #19228

    Simone
    Expired Member
    Post count: 3515

    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)

    in reply to: Change Title Text for Category links on Detail page #19134

    Simone
    Expired Member
    Post count: 3515

    for your convenience, I’ve just added a file

    in reply to: Change Title Text for Category links on Detail page #19133

    Simone
    Expired Member
    Post count: 3515

    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 } 
    
    in reply to: Unable to Update Addresses #19130

    Simone
    Expired Member
    Post count: 3515

    Hello, login details are incorrect

    ERROR: The password you entered for the username geodirectory is incorrect

    in reply to: Search Functionality #19046

    Simone
    Expired Member
    Post count: 3515

    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.

    in reply to: Change Title Text for Category links on Detail page #19040

    Simone
    Expired Member
    Post count: 3515

    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

Viewing 15 posts - 2,161 through 2,175 (of 2,874 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount