Christopher Hilling
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Why are POSTS created with /amp and PAGES with /?ampHi Weston, I have discovered why this is happening, but do not know what caused it.
I installed the AMP plugin taking the defaults but there does not appear to be any logic as to which pages have had the AMP option enabled and in which it is disabled.
Obviously, the pages (for instance: https://www.spadental.co.uk/whitchurch/?amp) where the AMP option was disabled were not being indexed. When I changed it, the page appears to be indexed by Google – which is exactly what I would expect.
I will have someone go through all the pages setting them to enabled AMP setting.
Thanks for your help.
- This reply was modified 6 years, 6 months ago by Christopher Hilling.
Forum: Plugins
In reply to: [Site Reviews] Default template not clear on AMPOK I’ll look into adding the SiteReviews css to AMP.
(I thought AMP didn’t really run Javascript?)Forum: Reviews
In reply to: [Site Reviews] Awesome plugin and great support and now accessible@chipmccain, Paul gets 5* from me too for absolutely fantastic support and a genuine interest in helping solving any problem or specific requirement you might have to install his SiteReviews plugin.
Cannot praise @geminilabs enough: well done Paul.
ChrisThanks @geminilabs all working on our site.
ChrisForum: Plugins
In reply to: [Site Reviews] Google Structured Data / schema.orgHi @geminilabs
I already have the rest of the schema build from other data, we have multiple locations and therefore want to just extract and add this data for each location:"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.8", "bestRating": "5", "worstRating": "1", "ratingCount": "174" },
Which is the equivalent of this shortcode for one location:
[site_reviews_summary category="plymouth" schema="true"]
https://www.spadental.co.uk/plymouth/reviews/
Thanks
Chris- This reply was modified 6 years, 8 months ago by Christopher Hilling.
- This reply was modified 6 years, 8 months ago by Christopher Hilling.
Forum: Plugins
In reply to: [Site Reviews] Import existing reviewsThanks, @geminilabs that has worked perfectly.
I would suggest that it is probably worth adding to your excellent sample code page :
1. the additional date variable into the function
2. the following line in the example:'date' => gmdate( ‘Y-m-d H:i:s’, strtotime( ’22-09-2008′ )),
3. the category parameter to the example too; and
4. a note that the Approve setting has to be off to enable the import of the review datesI know it is probably obvious to you but I would not have got there without your splendid help.
Again – thank you.
Forum: Plugins
In reply to: [Site Reviews] Import existing reviewsSo I now have added the following to the function.php: correct?
/** * @param array $reviewValues * author => the reviewer's name * email => the reviewer's email * assigned_to => the post_id of the page the review is assigned to * content => the review text * rating => the review rating (1-5) * title => the review title * date => the review date * @param string $reviewCategory The taxonomy ID or slug * @return void * * Example usage: * createSiteReview([ * 'author' => 'Jane Doe', * 'email' => '[email protected]', * 'content' => 'This is my review.', * 'rating' => '5', * 'title' => 'Amazing Service!', * 'date' => gmdate( ‘Y-m-d H:i:s’, strtotime( ’22-09-2008′ )), * ]); **/ function createSiteReview( array $reviewValues, $reviewCategory = '' ) { if( !function_exists( 'glsr_resolve' ))return; $database = glsr_resolve( 'Database' ); $user = wp_get_current_user(); $review = wp_parse_args( $reviewValues, [ 'author' => $user->exists() ? $user->display_name : '', 'email' => $user->exists() ? $user->user_email : '', 'assigned_to' => '', 'content' => '', 'ip_address' => glsr_resolve( 'Helper' )->getIpAddress(), 'rating' => '0', 'review_type' => 'local', 'title' => '', 'date' => '', ]); $review['avatar'] = get_avatar_url( $review['email'] ); $post_id = $database->createReview( $review, (object)['blacklisted' => false] ); $database->setReviewMeta( $post_id, $reviewCategory ); }
Forum: Plugins
In reply to: [Site Reviews] Import existing reviewsHi @geminilabs
I have already updated to version 2.13.1 : correct?
I have just looked at the latest version (updated 9 minutes ago – 6 revisions) of
https://github.com/geminilabs/site-reviews/wiki/How-to-manually-create-a-reviewit appears to have the date variable missing that you asked me to add:
‘date’ => gmdate( ‘Y-m-d H:i:s’, strtotime( ’22-09-2008′ )),
I assume I need to add it?
Thanks for the pointer to “require approval” – ours is set to requiring approval.
I will try it again shortly.
- This reply was modified 6 years, 8 months ago by Christopher Hilling.
Forum: Plugins
In reply to: [Site Reviews] Import existing reviewsHi @geminilabs
Apologies not had time to look at adding the date functionality into the createSiteReview function until now (had to do the day job!):
1. The import works perfectly and the Review is created with the correct date, but
2. When the review is Approved (Published) the date of the review is changed to today’s date.Is there a way of setting the Review as Approved (Published) on import and using the date passed as part of the createSiteReview function?
I have not tested it but I assume that unless you manually change the Publish date, the Approval process changes the date of the Review created by the reviewer to the date the Administrator Approves the Review?
Thanks
ChrisForum: Plugins
In reply to: [Site Reviews] Import existing reviewsHaving just imported all 165 reviews, I have just realised there is no BULK Action to approve multiple Reviews in one go: is there also a create variable to set the Review as Approved?
Forum: Plugins
In reply to: [Site Reviews] Import existing reviewsHi Paul,
Would it possible to add the date in to the function “createSiteReview”?
I am importing reviews for the last three months and would like to give them their actual date rather than them all being dated today.
Thanks
ChrisForum: Plugins
In reply to: [Site Reviews] Import existing reviewsThanks, looks like that might work just need to work out how to populate it with data from the InboundForm.
Will investigate InboundForm automation rules which get triggered on the form completion.I am sure there is a more elegant way of doing it but beyond my knowledge!
Thanks
ChrisForum: Plugins
In reply to: [Site Reviews] Is possible to show just initials?That works perfectly: resolved
Thanks
ChrisForum: Plugins
In reply to: [Site Reviews] Import existing reviewsHi is there a way of automating the transfer of review data captured on another form (InboundNow) into Site Review.
The website is a small group of dental practices and as part of their clinical service feedback they are required to capture more data than is easily possible in Site Review but only need to publish the star rating, overall comments and initials of the reviewer.
The category relates to the location of each of the dental practices within the group.
Ideally, I would like to run a cron job or something similar to automatically copy a subset of the review data completed in InboundNow form into the Site Review structure.
See: https://www.spadental.co.uk/plymouth/feedback/ for data collected.
Do you know of either:
1. plugin that can do the above; or
2. how easy would it to be to write a script to do the above?Thanks
ChrisForum: Plugins
In reply to: [Site Reviews] Import existing reviewsThanks – further questions!
1. where is the category assigned?
2. is the review_id auto-created on import or is it predefined in the import file?
Chris