Kiran

Forum Replies Created

Viewing 15 posts - 3,661 through 3,675 (of 6,022 total)
  • Author
    Posts
  • in reply to: Event schema #448307

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Boss theme issue #448118

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Boss theme issue #448103

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Event schema #448102

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Over 200 404s? #448101

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Place in Listing page has a Live event #448087

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Boss theme issue #448085

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: input fields cropped #448082

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: input fields cropped #447988

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Unnecessary Comment link #447987

    Kiran
    Moderator
    Post count: 7069

    Hi Himadri,

    I have fixed this and applied patch on your site.
    Patch : https://github.com/AyeCode/geodirectory/pull/467/commits/c563cb5a522b1bec2922323d36c17075c6aaa038

    Please check and let us know.

    Kiran

    in reply to: Duplicate category content #447975

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: CSV file image issue #447765

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: After Adding Location – No item found #447764

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: After Adding Location – No item found #447619

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: Issue with URI for one of my CPT #447499

    Kiran
    Moderator
    Post count: 7069

    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

Viewing 15 posts - 3,661 through 3,675 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount