Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 6,691 through 6,705 (of 13,774 total)
  • Author
    Posts
  • in reply to: Exclude Related Listings Categories #330660

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Michael,

    There is no setting for this and no super simple way to do it but the whole query can be filtered by geodir_related_posts_widget_query_args filter. https://wpgeodirectory.com/codex/codex/geodirectory_filters/geodir_related_posts_widget_query_args/

    not tested and needs to be edited but you would need to do something like this:

    
    
    add_filter('geodir_related_posts_widget_query_args','_my_gd_related_filter',10,2);
    function _my_gd_related_filter($query_args, $request){
    
    	if(isset($query_args['tax_query'][0]['terms'])){
    		global $post;
    		$query_args['tax_query'][0]['terms'] = array(11,22,33); // you can set the cat id's
    		$query_args['tax_query']['terms'] = array($post->default_category); // you can use the default category of the post..
    	}
    
    	return $query_args;
    }

    Thanks,

    Stiofan

    in reply to: Merry Christmas!! #330658

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks Ben, and to you too 🙂

    in reply to: Breadcrumb formatting issue with Neighborhoods #330123

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have assigned a dev to check this, it will be Monday before they can have a look. If you provide wp-admin details we can try and apply any fix to your site direct.

    Thanks,

    Stiofan

    in reply to: Compatibility Issues with Themler Theme #330122

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    HI Ike,

    I am glad you found a solution for your project and i am sorry GD did not fit with your needs this time, i have refunded your payment now, it can take upto 7 days to show in your account. Please feel free to come back to GD if you find another project that might fit it.

    Good luck in the future,

    Stiofan

    in reply to: registration #330118

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You would follow this: https://wpgeodirectory.com/docs/translate-core/

    Then in the poedit you would look for the string “Add %s” and change it to “add your professional card”

    Thanks,

    Stiofan

    in reply to: include city and region for sorting/searh #330117

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You want to mix the regions and cities together in one dropdown?
    If you create the dropedown/s then i will give you the code to update the value on the fly when the post is saved.

    The adding to the search form is done via drag/drop.

    Thanks,

    Stiofan

    in reply to: Secondary description and keywords meta tags #330116

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marc,

    You just want to remove keywords? If so this should do it

    add_filter('geodir_seo_meta_keywords','__return_empty_string');

    Thanks and happy holidays to you also 🙂

    Stiofan

    in reply to: Country in 2 different languages creates a mess #330115

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marc,

    I added you to skype, we can chat things over after Christmas.

    Merry Christmas to you too 🙂

    Stiofan

    in reply to: function file missing when click Places with Admin log in #330114

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Did u resolve this? It seems to work fine for me?

    Stiofan

    in reply to: Profile URLs Going to Different Pages #330113

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Michael,

    The reviews link is a direct link to the users normal PW author page showing his posts, the other one is a link to his GD places.

    if you wanted to change the normal link you would use the ‘author_link’ filter https://codex.wordpress.org/Plugin_API/Filter_Reference/author_link

    Thanks,

    Stiofan

    in reply to: Category search questions – subcategory order and/or hide #330112

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    I believe this is the code snippet you want for event venue:

    
    
    add_filter('geodir_custom_field_output_address_var_post','_my_replace_address_with_venue',10,3);
    function _my_replace_address_with_venue($html,$location,$cf){
    
    	if(isset($cf['post_type']) && $cf['post_type']=='gd_event'){
    		global $post;
    
    		$link_id = geodir_get_post_meta($post->ID, 'geodir_link_business', true);
    		if($link_id ){
    
    			$html_var = $cf['htmlvar_name'] . '_address';
    
    			$field_icon = geodir_field_icon_proccess( $cf );
    			if ( strpos( $field_icon, 'http' ) !== false ) {
    				$field_icon_af = '';
    			} elseif ( $field_icon == '' ) {
    				$field_icon_af = '<i class="fa fa-home"></i>';
    			} else {
    				$field_icon_af = $field_icon;
    				$field_icon    = '';
    			}
    
    			$html = '<div class="geodir_more_info ' . $cf['css_class'] . ' ' . $html_var . '" style="clear:both;"  itemscope itemtype="https://schema.org/PostalAddress">';
    			$html .= '<span class="geodir-i-location" style="' . $field_icon . '">' . $field_icon_af;
    			$html .= '</span>';
    
    			$linked_post_info = get_post($link_id);
    			$linked_post_title = !empty( $linked_post_info->post_title ) ? $linked_post_info->post_title : __( 'Listing', 'geodirevents' );
    			$linked_post_url = get_permalink($link_id );
    			if ( isset($post->post_address) ) {
    				$html .= '<span itemprop="venue">'.__( 'Venue:', 'geodirevents' ).'<a title="' . esc_attr( $linked_post_title ) . '" href="'.$linked_post_url.'">'. $linked_post_title  . '</a></span>';
    			}
    
    			$html .= '</div>';
    		}
    	}
    	return $html;
    }
    

    The category thing can be done but i think is beyond support and more customisation which we do not do, you would have to hire a developer to do that.

    Thanks,

    Stiofan

    in reply to: Custom fields and slider #330109

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #2 is not possible at the moment. You could hide the big image with css though.

    Stiofan

    in reply to: No meta Title and wrong meta Description showing #330105

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have updated the location manager for you.

    Thanks,

    Stiofan

    in reply to: Editing Neighboorhood meta changes slug #330104

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Craig,
    I have updated the location manager for you, please check now.

    Thanks,

    Stiofan

    in reply to: Key word Search #330102

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    I have fixed this by editing your child theme functions.php to add two lines of code around the search from code to remove the home filter for the url.

    Thanks,

    Stiofan

Viewing 15 posts - 6,691 through 6,705 (of 13,774 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount