Kiran
Forum Replies Created
-
AuthorPosts
-
Hello Lise,
– To add offers schema add price field (there is already predefined field with name geodir_price) from custom field settings.
– Create new text field with key(name) ‘geodir_performer’
– Add following code snippet.function _gd_snippet_custom_event_schema( $schema, $post ) { if ( empty( $post ) ) { return $schema; } if ( ! empty( $post->post_type ) && $post->post_type == 'gd_event' ) { // offers if ( isset( $post->geodir_price ) ) { $offers = array(); $offers['@type'] = 'Offer'; $offers['price'] = $post->geodir_price; // Field geodir_price $offers['priceCurrency'] = 'USD'; // Currency code $offers['availability'] = 'http://schema.org/InStock'; $offers['url'] = $schema['url']; $offers['validFrom'] = $schema['startDate']; $offers['validThrough'] = $schema['endDate']; $schema['offers'] = $offers; } // performer if ( isset( $post->geodir_performer ) ) { $performer = array(); $performer['@type'] = 'Person'; $performer['name'] = $post->geodir_performer; // Field geodir_performer $schema['performer'] = $performer; } } return $schema; } add_filter( 'geodir_details_schema', '_gd_snippet_custom_event_schema', 999, 2 );Thanks,
KiranThis reply has been marked as private.This reply has been marked as private.Hi Lise,
Can you attach screenshot/lists which type of warnings it showing in schema?
Via using hook you can add custom fields in schema. See example here: https://wpgeodirectory.com/support/topic/price-range-schema/#post-435471
Kiran
This reply has been marked as private.Hello Carlin,
In GeoDirectory v1 there is no setting to achive what you asking.
But in v2 it is possible.
You can display listing liked to/linked from current post via Settings > Tabs.If you want to display it within listing layout then you can use shortcode in GD Archive Item to display listing linked from/linked to. To get shortcode just follow this: https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/#intro
Let us know.
Kiran
Hello Joy,
There was a caching issue, i have re-saved field order from Places > Settings > Custom Fields > Moved one of field up-down.
Now it showing all fields. Also i have set some GeoDirectory widgets to sidebar now it looks fine.
Kiran
This reply has been marked as private.Hi Mike,
It seems there is another chosen script/style loaded on pages.
Please provide us FTP credentials so i can look into to find which one is causing this conflict.
Kiran
Hi Himadri,
I have fixed this and applied patch on your site.
Patch : https://github.com/AyeCode/geodirectory/pull/467/commits/c563cb5a522b1bec2922323d36c17075c6aaa038Please check and let us know.
Kiran
Hello,
This is how currently working. But you can use following code snippet to achieve what you requested.
function _gd_snippet_hide_term_location_description( $description, $term_id, $location, $location_type, $post_type ) { if ( $description == '' ) { $description = '<!-- hide term location description -->'; } return $description; } add_filter( 'geodir_location_category_top_description', '_gd_snippet_hide_term_location_description', 10, 5 );Kiran
Hello Sam,
In CSV import it is not allowed to remove all images completely during import. If listing have multiple images then you can still use only one image column and remove others images.
Kiran
This reply has been marked as private.Hello Ansen,
I am unable to add any new or additional images to places. It looks like it is uploading the image but it just disappears.
May be it is due to htaccess password authentication it not uploading image. Try after disabling password authentication.
I forgot to ask how do I hide the No Comments on the listing pages. I have reviews and comments turned off.
Go to Pages > Search “GD Archive Page” > Remove [gd_post_rating] shortcode.
Kiran
Hello,
Please check now.
There was a musing slug translation for “activities” in custom post type slug translation & string translation.
I have re-saved custom post type slug translation & slug in string translation and re-saved permalinks.
Now it is working fine.Kiran
-
AuthorPosts