Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
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
Thanks Ben, and to you too 🙂
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
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
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
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
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
Hi Marc,
I added you to skype, we can chat things over after Christmas.
Merry Christmas to you too 🙂
Stiofan
December 24, 2016 at 2:48 pm in reply to: function file missing when click Places with Admin log in #330114Did u resolve this? It seems to work fine for me?
Stiofan
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
December 24, 2016 at 2:35 pm in reply to: Category search questions – subcategory order and/or hide #330112Hello,
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
#2 is not possible at the moment. You could hide the big image with css though.
Stiofan
I have updated the location manager for you.
Thanks,
Stiofan
Hi Craig,
I have updated the location manager for you, please check now.Thanks,
Stiofan
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
-
AuthorPosts