<p>Yes, your code looks fine.</p>

<p>It's possible that the second and third entries just don't have content in the <code>body_testimonial</code> field.</p>

<p><em>(Unrelated — I recommend using <code>testimonial</code> as your loop variable, since it represents a single Testimonial entry. This is a good practice in general: Variables that represent a list should have a plural name, and variables that represent a single object should have a singular name.)</em></p>

CC BY-SA 3.0
2016-10-07T07:39:36.927Z
Thanks Michael, that's embarrassing but during the cause of learning I would have wiped the entry body. Working fine now and appreciate pointing out the valid argument to use singular grammar.
Nutmeg
CC BY-SA 3.0
2016-10-07T03:03:10.647Z
2016-10-07T03:03:10.647Z
Michael Rog
<p>The slider requires an unique ID per slide, wrapped in <code>&lt;li&gt;</code> tags, so I am trying this:</p>

<pre><code>&lt;div id="rev_slider_15_1" class="rev_slider fullwidthabanner" style="display:none;" data-version="5.2.5.4"&gt;
&lt;ul&gt;

    &lt;!-- SLIDES --&gt;

    {% for testimonials in craft.entries.section('testimonials').limit(3) %} 

    &lt;li data-index="rs-{{ testimonials.id }}" &gt;

        &lt;!-- LAYERS --&gt;

        &lt;!-- LAYER NR. 1 --&gt;

        &lt;p class="tp-caption tp-resizeme" 
           id="slide-{{ testimonials.id }}-layer-2"&gt;

            {{ testimonials.body_testimonial }}

        &lt;/p&gt;

        &lt;!-- LAYER NR. 2 --&gt;

        &lt;span class="tp-caption tp-resizeme author" 
              id="slide-{{ testimonials.id }}-layer-3" &gt;

            {{ testimonials.title }}

        &lt;/span&gt;

    &lt;/li&gt;

    {% endfor %}    

&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>This results in the first slide entry with both Title &amp; Body, but the second and third slides only parse the Title not the Body.</p>

<p>Could someone verify the craft code is correct? The entries are made in a Channel section with a handle; testimonials.</p>

<entrymodel>
Implementing Revolution Slider
# Implementing Revolution Slider

(Asked by: username_0 on 2016-10-07)

The slider requires an unique ID per slide, wrapped in  tags, so I am trying this:



    

    {% for testimonials in craft.entries.section('testimonials').limit(3) %} 

    

        

        

        

            {{ testimonials.body_testimonial }}

        

        

        

            {{ testimonials.title }}

        

    

    {% endfor %}    




This results in the first slide entry with both Title & Body, but the second and third slides only parse the Title not the Body.
Could someone verify the craft code is correct? The entries are made in a Channel section with a handle; testimonials.

**Tags:** entrymodel

---

## 1 answers

### Answer by username_1 on 2016-10-07. Score: 3 | Accepted answer

Yes, your code looks fine.

It's possible that the second and third entries just don't have content in the `body_testimonial` field.

*(Unrelated — I recommend using `testimonial` as your loop variable, since it represents a single Testimonial entry. This is a good practice in general: Variables that represent a list should have a plural name, and variables that represent a single object should have a singular name.)*

> **Comments:**
> **username_0**: Thanks Michael, that's embarrassing but during the cause of learning I would have wiped the entry body. Working fine now and appreciate pointing out the valid argument to use singular grammar.  

---

