Kiran

Forum Replies Created

Viewing 15 posts - 961 through 975 (of 6,022 total)
  • Author
    Posts
  • in reply to: Rating numbers not being received via API. #519835

    Kiran
    Moderator
    Post count: 7069

    I have also updated orderby feature for locations API. Please check endpoints mentioned at here: https://wpgeodirectory.com/support/topic/listings-search/#post-517092

    Kiran

    in reply to: Rating numbers not being received via API. #519834

    Kiran
    Moderator
    Post count: 7069

    Hi Rodney,

    I have applied patch on your site.

    To submit reviews via REST API use following endpoints.

    1) NORMAL RATING:

    1.1) Using basic data:

    ?post=801&content=This is comment via API&rating=5

    1.2) Using advance data:

    ?author=1&[email protected]&author_ip=127.0.0.1&author_name=Test User&author_url=https://www.google.co.in&status=1&post=801&content=This is comment via API&rating=5&images=http://www.mysite.com/images/1.png::http://www.mysite.com/images/2.png

    2) MULTI RATINGS:

    2.1) Using basic data:

    ?post=801&content=This is comment via API&rating=5&ratings[3]=3&ratings[4]=5

    2.2) Using advance data:

    ?author=1&[email protected]&author_ip=127.0.0.1&author_name=Test User&author_url=https://www.google.co.in&status=1&post=801&content=This is comment via API&rating=5&ratings[3]=3&ratings[4]=3&images=http://www.mysite.com/images/1.png::http://www.mysite.com/images/2.png

    NOTE: In ratings[3] & ratings[4] 3 & 4 are rating ids.

    RESPONSE:

    
    
    {
    	"id": 242,
    	"post": 801,
    	"parent": 0,
    	"author": 1,
    	"author_name": "Admin",
    	"author_url": "http://www.mysite.com/",
    	"date": "2019-11-23T13:24:52",
    	"date_gmt": "2019-11-23T13:24:52",
    	"content": {
    		"rendered": "<div class=\"description\"><p>This is comment via API</p>\n</div>"
    	},
    	"link": "http://www.mysite.com/places/australia/new-south-wales/sydney/festival/the-test/#comment-242",
    	"status": "approved",
    	"type": "comment",
    	"post_type": "gd_place",
    	"country": "Australia",
    	"region": "New South Wales",
    	"city": "Sydney",
    	"latitude": "-33.8748058817",
    	"longitude": "151.2082655317",
    	"rating": {
    		"id": "overall",
    		"label": "Overall",
    		"rating": 5,
    		"html": "<div class=\"gd-rating-outer-wrap gd-rating-output-wrap\">\t\t<div class=\"gd-rating gd-rating-output gd-rating-type-font-awesome\">\r\n\t\t\t<span class=\"gd-rating-wrap\" title=\"5 star rating\">\r\n\t\t\t\t<span class=\"gd-rating-foreground\" style='width:100%; '>\r\n\t\t\t\t<i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t\t<span class=\"gd-rating-background\" >\r\n\t\t\t\t<i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t</span>\r\n\t\t\t\t\t</div>\r\n\t\t</div>"
    	},
    	"ratings": {
    		"rendered": {
    			"3": {
    				"id": 3,
    				"label": "Service",
    				"rating": 3,
    				"max_rating": 5,
    				"html": "<div class=\"gd-rating-outer-wrap gd-rating-output-wrap\">\t\t<div class=\"gd-rating gd-rating-output gd-rating-type-font-awesome\">\r\n\t\t\t<span class=\"gd-rating-wrap\" title=\"3 star rating\">\r\n\t\t\t\t<span class=\"gd-rating-foreground\" style='width:60%; '>\r\n\t\t\t\t<i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t\t<span class=\"gd-rating-background\" >\r\n\t\t\t\t<i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-star fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t</span>\r\n\t\t\t\t\t</div>\r\n\t\t</div>"
    			},
    			"4": {
    				"id": 4,
    				"label": "Price",
    				"rating": 3,
    				"max_rating": 3,
    				"html": "<div class=\"gd-rating-outer-wrap gd-rating-output-wrap\">\t\t<div class=\"gd-rating gd-rating-output gd-rating-type-font-awesome\">\r\n\t\t\t<span class=\"gd-rating-wrap\" title=\"3 star rating\">\r\n\t\t\t\t<span class=\"gd-rating-foreground\" style='width:100%;  color:#001ae5; '>\r\n\t\t\t\t<i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t\t<span class=\"gd-rating-background\" >\r\n\t\t\t\t<i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i><i class=\"fas fa-rupee-sign fa-fw\" aria-hidden=\"true\" ></i>\t\t\t\t</span>\r\n\t\t\t</span>\r\n\t\t\t\t\t</div>\r\n\t\t</div>"
    			}
    		}
    	},
    	"images": {
    		"rendered": [
    			{
    				"id": "961",
    				"title": "",
    				"src": "http://www.mysite.com/wp-content/uploads/2019/11/2-7.png",
    				"thumbnail": "http://www.mysite.com/wp-content/uploads/2019/11/2-7-150x150.png",
    				"featured": false,
    				"position": "1"
    			},
    			{
    				"id": "960",
    				"title": "",
    				"src": "http://www.mysite.com/wp-content/uploads/2019/11/1-7.png",
    				"thumbnail": "http://www.mysite.com/wp-content/uploads/2019/11/1-7.png",
    				"featured": true,
    				"position": "0"
    			}
    		]
    	},
    	"total_images": 2,
    	"likes": 0,
    	"author_avatar_urls": {
    		"24": "http://www.mysite.com/wp-content/plugins/userswp/assets/images/no_profile.png",
    		"48": "http://www.mysite.com/wp-content/plugins/userswp/assets/images/no_profile.png",
    		"96": "http://www.mysite.com/wp-content/plugins/userswp/assets/images/no_profile.png"
    	},
    	"meta": [],
    	"_links": {
    		"self": [
    			{
    				"href": "http://www.mysite.com/wp-json/geodir/v2/reviews/242"
    			}
    		],
    		"collection": [
    			{
    				"href": "http://www.mysite.com/wp-json/geodir/v2/reviews"
    			}
    		],
    		"author": [
    			{
    				"embeddable": true,
    				"href": "http://www.mysite.com/wp-json/wp/v2/users/1"
    			}
    		],
    		"up": [
    			{
    				"embeddable": true,
    				"post_type": "gd_place",
    				"href": "http://www.mysite.com/wp-json/geodir/v2/places/801"
    			}
    		]
    	}
    }

    Regards,
    Kiran

    in reply to: Google Maps Conflict #519728

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    Do you know what caused the problem so I can try to avoid anything in future?

    Don’t worry we have included changes in plugin core files.

    did you manage to take a look at the early post regarding a select2 error

    Provide any specific url where you seen this JS error.

    Kiran

    in reply to: Google Maps Conflict #519706

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    We have updated some changes please check and let us know.

    Regards,
    Kiran

    in reply to: schema issue #519704

    Kiran
    Moderator
    Post count: 7069

    Hi Vlad,

    We will check YOAST plugin recent version to check how it affected(if) the listing schema. Google taking much time to crawl & re-indexing pages so it takes time longer than expected to check things.

    Let us know if you have noticed any change in schema from your side.

    Thanks,
    Kiran

    in reply to: Import Issues #519696

    Kiran
    Moderator
    Post count: 7069

    Hi Anitra,

    Previous snippet will work only fro frontend add/edit listing page. To filter map name on backend add/edit listing page, try following PHP snippet.

    
    
    /**
     * Load Google map on admin add/edit listing page.
     */
    function gd_snippet_admin_add_listing_map_name( $map ) {
        global $post, $pagenow;
    
    	if( ( 'edit.php' === $pagenow || 'post.php' === $pagenow || 'post-new.php' == $pagenow ) && ! empty( $post->post_type ) && geodir_is_gd_post_type( $post->post_type ) ) {
    		$map = 'google'; // google or osm
    	}
    
        return $map;
    }
    add_filter( 'geodir_map_name', 'gd_snippet_admin_add_listing_map_name', 20, 1 );

    Regards,
    Kiran

    in reply to: Pagination in Places Widget Not Doing Anything #519678

    Kiran
    Moderator
    Post count: 7069

    Hi Tony,

    I checked it looks like widget element class conflicts with YOOtheme builder. Please provide FTP credentials to look into more.

    Regards,
    Kiran

    in reply to: I need to add fields to my CPT #519663

    Kiran
    Moderator
    Post count: 7069

    Glad to hear that it worked 🙂

    Kiran

    in reply to: I need to add fields to my CPT #519519

    Kiran
    Moderator
    Post count: 7069

    Hi Jose,

    Please try after clearing your browser cache. That was the JavaScript variable conflict with Rank Math plugin. We have fixed it.

    Regards,
    Kiran

    in reply to: Geocoding issue invalid_request #519493

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.

    Kiran
    Moderator
    Post count: 7069

    Hi Hui,

    I have updated some changes on your site to fix the category field issue.

    Please try now and let us know.

    Regards,
    Kiran

    in reply to: Geocoding issue invalid_request #519218

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: OG tags for images #519217

    Kiran
    Moderator
    Post count: 7069

    Hi @polle,

    I have un-ticked option “Disable theme feature image output?” from GeoDirectory > Settings > Design > Details.

    Now page shows listing image as a featured image.

    Please try after clearing your browser cache.

    Let us know.

    Regards,
    Kiran

    in reply to: location for directions not working #519211

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: location for directions not working #519208

    Kiran
    Moderator
    Post count: 7069

    Hi Andy,

    I have added that in hosts files, but site is not loading. If you have staging site then provide so i can test there.

    Regards,
    Kiran

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