Hey php83,
This isn’t really a support question. You need a developer for this. I’ll be happy to point you in the right direction, though.
Your code will look similar to this
<?php
$testimonials = get_posts( array( 'post_type' => 'testimonial', 'posts_per_page' => -1 ) );
foreach( $testimonials as $testimonial ) {
echo '<p>' . $testimonial->post_title . '</p>';
}
?>
‘posts_per_page’ => -1 signifies no limit on the amount of testimonials you want to display.
If you still have issues, look in to using get_posts() or query_posts(), there’s a myriad of tutorials on the internet. Just remember to switch “post_type” to “testimonial”.
Cheers!
Thread Starter
php83
(@php83)
Hi lukerollans,
Thanks for your feedback. It worked.
My pleasure.
Please feel free to take a moment and leave us a review if you have a moment.
Cheers!
Hi,
I have applied that loop at our end, but in that loop client and company name is not coming.
Hi pankaj,
If you are having difficulty, please open a new support thread instead of replying to a new one.