Kiran
Forum Replies Created
-
AuthorPosts
-
Hello Herwig,
I have checked and it seems something conflicts there. Please provide us FTP credentials to look into more.
Kiran
Hello David,
This has been fixed already, and it will be in next release of GeoDirectory v2 & Location Manager v2.
Provide us FTP credentials to update patch.
Thanks,
KiranFebruary 23, 2019 at 2:47 pm in reply to: Sorting of listings – duplication and missing listings #470801This reply has been marked as private.Hello,
Please check this: https://wpgeodirectory.com/docs-v2/addons/custom-post-types/#link
Let us know if anything not clear.
Kiran
Hello Jim,
To convert data from v21 to v2 we are using this class file: https://github.com/AyeCode/geodirectory/blob/master/includes/admin/class-geodir-admin-upgrade.php
To convert listing detail table structure & data it is using this function https://github.com/AyeCode/geodirectory/blob/master/includes/admin/class-geodir-admin-upgrade.php#L693
During v1 to v2 conversion we have changed some columns name to use save database table space & to use it more suitable way. Ex: “post_address” field is changed to “street”, “post_city” changed to “city”, “geodir_contact” changed to “phone”, “geodir_email” changed to “email” etc.. See https://github.com/AyeCode/geodirectory/blob/master/includes/admin/class-geodir-admin-upgrade.php#L721 & https://github.com/AyeCode/geodirectory/blob/master/includes/admin/class-geodir-admin-upgrade.php#L735
Please follow this if you are familiar with WordPress & GeoDirectory coding.
If your staging and live site contains same data then you just have to move two tables from staging site to live site.
Export database tables WP_PREFIX_geodir_custom_fields & WP_PREFIX_geodir_gd_restaurant_detail from staging site database and import at your live site database. Drop those two database tables from live site before importing so it can create new structure.Thanks,
KiranFebruary 23, 2019 at 8:04 am in reply to: Sorting of listings – duplication and missing listings #470747Hello Vivek,
If archive page sorting is set to reviews, and there are no reviews for many/any items, then on next page, the positions get recalculated, thus showing again some items which may have been shown on earlier page.
This has been fixed already, and will be in next release of Location Manager v2.
OR
If you have access to Location Manager files then do following to quick fix:
– Open file \wp-content\plugins\geodir_location_manager\includes\class-geodir-location-permalinks.php in text editor
– Around line no. 446 replace$cpt_match = $match;with
$cpt_match = count( $cpt_query_vars ) + 1;tried to edit using VC the archive item template- basically i only removed one line of shortcode for business hours as i did not want to show that in archive). that worked fine, but suddenly a lot of line spacing / padding appeared between the image/ title/ text as you can see on this page – any quick fixes?
Saving the content from editor adds br tag if text row or tag is ended with new line(ENTER).
I have saved Pages > All Pages > GD Archive Item by removing new line from end of each shortcode row. Now there is not extra space there.Let us know.
Thanks,
KiranFebruary 23, 2019 at 7:26 am in reply to: How to set redirect after submit claim listing form success #470746This reply has been marked as private.Hello Sam,
Try following snippet to prevent custom field html wrap by p tags.
function _gd_snippet_output_html_field( $html, $location, $cf ) { global $post; $html_var = $cf['htmlvar_name']; if ( !empty( $post->post_type ) && ! empty( $post->{$html_var} ) ) { $field_title = trim( $cf['site_title'] ) != '' ? __( $cf['site_title'], 'geodirectory' ) . ': ' : ''; $field_icon = geodir_field_icon_proccess( $cf ); if ( strpos( $field_icon, 'http' ) !== false ) { $field_icon_af = ''; } elseif ( $field_icon == '' ) { $field_icon_af = ''; } else { $field_icon_af = $field_icon; $field_icon = ''; } $html = '<div class="geodir_more_info ' . $cf['css_class'] . ' ' . $html_var . '" style="clear:both;"><span class="geodir-i-text" style="' . $field_icon . '">' . $field_icon_af; $html .= $field_title; $html .= '</span>' . $post->{$cf['htmlvar_name']} . '</div>'; } return $html; } add_filter( 'geodir_custom_field_output_html_var_geodir_html_field', '_gd_snippet_output_html_field', 11, 3 );Kiran
Hello goakes,
4) When I go to my listings under any of the CPTs, this shows three CPTs at the top – 6 Businesses, 5 Attractions and 5 Events. When I select My Listings – Businesses, this should only show the business listings. Besides this, I am unable to edit the other 4 CPTs – Services, Clubs, Selling and Notices. This is not working.
To show/hide CPT in listings/reviews /favorites/ tabs is managed from WordPress Admin > UsersWP > GeoDirectory. Currently you have selected only those three CPTs to show in listings tab.
Thanks,
KiranFebruary 23, 2019 at 6:12 am in reply to: How to set redirect after submit claim listing form success #470737Hello Thomas,
Please try following code snippet to redirect custom after claim success.
/** * Set custom redirect url after claim listing. */ function gd_snippet_190223_template_redirect() { global $post; if ( ! empty( $post ) && ! empty( $_GET['geodir_claim_request'] ) && $_GET['geodir_claim_request'] == 'success' && geodir_is_page( 'detail' ) ) { $redirect_url = home_url(); // SET CUSTOM REDIRECT URL. wp_safe_redirect( $redirect_url ); die(); } } add_action( 'template_redirect', 'gd_snippet_190223_template_redirect' );Kiran
Hello Martin,
I have checked on your site and replicated issue what you said, but i can’t replicate similar issue on my test site even following same steps. We have some changes related to media uploaded for listings and seems this issue already been fixed. Those changes will be in GeoDirectory v2.0.0.46.
If you have staging/test site, then please try development version https://github.com/AyeCode/geodirectory to check if it solves issue or not.
Thanks,
KiranHello There,
Even searching with “Ludlow UK” will returns expected results.
Kiran
Hello,
I have fixed following:
– You have mixed database structure by installing v1 and v2. I have fixed database structure manually.
– You have old files in geodir_custom_posts addons.Please check & let us know.
Kiran
This reply has been marked as private.Hello,
Try following code snippet. To run this snippet use any snippet plugin or put in your child theme functions.php file.
* Fix conflict between ARTEMIS review with GeoDirectory review. */ function gd_snippet_190222_template_redirect() { global $post; if ( ! empty( $post ) && geodir_is_page( 'detail' ) ) { remove_filter( 'comment_form_field_comment', 'ARTEMIS_SWP_change_comment_field_textarea' ); } } add_action( 'template_redirect', 'gd_snippet_190222_template_redirect' );Kiran
-
AuthorPosts