Kiran
Forum Replies Created
-
AuthorPosts
-
Thanks for letting us know 🙂
Hello @eic2010,
Scott has issue with GeoDirectory Events v2 plugin, and you are using v1. In v2 there was missing startDate meta from event detail page source. In Events v1 it is already there.
But not sure why google not reflecting it in report. The other schema properties like title, image, address etc already validated by Google but it not doing with startDate. We have added startDate to page same way as other properties, and it already on page if you check page source of the event detail page.
Please try with new event listing to check whether it is caching issue or something else.
Thanks,
KiranThis reply has been marked as private.Hello,
In next version of Pricing Manager there will be package id also added to body class.
For now you can use following code snippet.
function gd_snippet_190208_body_class( $classes ) { global $gd_post; // Add post package id to body class. if ( ! empty( $gd_post ) && isset( $gd_post->package_id ) && ( geodir_is_page( 'detail' ) || geodir_is_page( 'preview' ) ) ) { $classes[] = 'gd-pkg-id-' . $gd_post->package_id; } return $classes; } add_filter( 'body_class', 'gd_snippet_190208_body_class', 10, 1 );Once you add this snippet. You can use .gd-pkg-id-2 css class to hide div.
Ex:.gd-pkg-id-2 .widget.geodir-post-directions { display: none; }Kiran
February 8, 2019 at 8:37 am in reply to: WP admin redirected to homepage once GD2 is activated #467772Hello Jreth,
Actually GeoDirectory prevents access to admin area to user roles selected under GeoDirectory > Settings > General > Site Settings > Restrict wp-admin.
By default it has role “Subscriber ” is selected. The use “james” has two roles “Subscriber” & “Keymaster”. But as Subscriber is prevented admin area it redirecting to home.I have modified the function, so if user has admin role then it will not redirect.
Let us know.
Kiran
Hello Tsekka,
The issue has been fixed already, it will be in next release of GeoDirectory v2.0.0.46.
See patch here: https://github.com/AyeCode/geodirectory/commit/4c4b981497ee6bf3efc71adc1809b8307b2b4e0f#diff-95f40ebb5af68cfcf6a8a92be62fb5f5R13
To fix it now you need to update “X-Poedit-KeywordsList” tag in .po files(geodirectory-en_US.po).
Change:
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;_n_noop:1,2;" "_nx:1,2;_x;_ex;esc_attr_e;esc_attr__\n"To:
"X-Poedit-KeywordsList: __;__ngettext:1,2;__ngettext_noop:1,2;_c;_e;_ex:1,2c;" "_n:1,2;_n_noop:1,2;_nc:4c,1,2;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;esc_attr__;" "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;gettext;" "gettext_noop\n"After updating X-Poedit-KeywordsList re-scan .po file.
Let us know.
Thanks,
KiranThis reply has been marked as private.– view.png
< I can’t replicate thois from my side. Can you confirm or provide more details like page url or steps how to replicate?Hello Raşit,
Please check and let us know.
Kiran
Hello Raşit,
Please check after clearing your browser cache.
Kiran
This reply has been marked as private.Hello,
You have to re-scan and update translation in files /wp-content/languages/plugins/geodirlocation-tr_TR.po & /wp-content/languages/plugins/geodirectory-tr_TR.po
I have translated some texts and those are working, check now.
Kiran
Hello Javier,
In next release of Pricing Manager there will be a body css class ‘gd-pkg-id-x’ (where x = package id) on detail page.
You can use following snippet to hide map & address for particular package id.
/** * Hide address for particular post package id. */ function gd_snippet_190207_cf_output_address( $html, $location, $cf, $output ) { global $gd_post; if ( empty( $gd_post ) ) { return $html; } if ( ! empty( $gd_post->package_id ) ) { $package_id = (int) $gd_post->package_id; if ( $package_id === 2 ) { // Hide address for package id: 2 $html = '<!--hidden-->'; } } return $html; } add_filter( 'geodir_custom_field_output_address_var_address', 'gd_snippet_190207_cf_output_address', 20, 4 ); /** * Hide detail map for particular post package id. */ function gd_snippet_190207_check_display_map( $display, $params ) { global $gd_post; if ( $display && ! empty( $params['posts'] ) && $params['posts'] == $gd_post->ID && ! empty( $gd_post ) && isset( $gd_post->package_id ) ) { $package_id = (int) $gd_post->package_id; if ( ( $package_id === 2 ) && ( geodir_is_page( 'detail' ) || geodir_is_page( 'preview' ) ) ) {// Hide map for package id: 2 $display = false; } } return $display; } add_filter( 'geodir_check_display_map', 'gd_snippet_190207_check_display_map', 20, 2 );Thanks,
KiranHello Rasit,
After doing some debugging found that &sdistance= is not reflecting in query part, but it if serced with &dist= then it works fine.
I will investigate & fix this and let us know.Kiran
Hello Katie,
Please try after clearing your browser cache and let us know.
Thanks,
Kiran -
AuthorPosts