Hey Szyam,
Could you please paste in which shortcode you’re using? Also, when those testimonials were submitted, did you or the customer mark it as “I give permission to display contact details on the website”?
No response, marking as resolved. Please feel free to re-open if you continue to experience any issues 🙂
Thread Starter
Szyam
(@szyam)
Sorry about that, I didn’t see your reply. I’m using
[testimonials per_page=”10″]
Are there shortcodes to include name and company? I didn’t see them in the doc’s.
Thanks
Thread Starter
Szyam
(@szyam)
Also, I entered them through the admin. I’m not seeing a permission box? Although that may only be for front end submissions, we’re not doing that at the moment.
Given you’ve added the testimonials via the admin area, that means the “permission to show contact details” option is turned off.. and I’ve just realised there’s no way to manually switch that on in the backend.
This is technically a bug. Will make note of it and fix in the next release.
For now, you can leverage one of the actions or filters that Clean Testimonials offers to do this manually. They can be found in the README here:
https://github.com/plugify/clean-testimonials
Example (add to your themes functions.php file)
function output_details($testimonial, $context) {
if( 'shortcode' == $context ) {
echo '<p>' . get_post_meta( $testimonial-ID, 'testimonial_client_company_website', true ) . '</p>';
}
}
add_action( 'ct_after_render_testimonial', 'output_details', 10, 2 );
Code is not tested
Closing and resolving given lack of replies.
I know it’s been a while, but has there been any progress on this issue? It is still a problem.
Thanks!