Ok I tried it, it kinda works.
first problem:
<?php foreach ($testimonials as $testimonial): ?>
gives me all the testimonials “plucked” and it seems that i can’t chain ->shuffle()
or ->limit(3)
to it (in your example you can sort it and chain easily). Is this normal ?
Second problem:
<?php echo $testimonial->clientTestimonial()->kt() ?>
echoes the clientTestimonial
field (great) but all the others fields echo the same thing, for example <?php echo $testimonial->clientTestimonialName() ?>
also echoes clientTestimonial
instead of the right field and I can’t find why.
any ideas ?
//Edit : in fact the first testimonial is empty, the second is just the quote repeated, the third is just the name, the fourth is just the role etc… I’m going to investigate.
//Edit 2: in fact it’s repeating only one of the items over and over.