<p>Craft will inject the current entry by default in your template. All you have to do is to remove this loop</p>

<pre><code>{% for entry in craft.entries.section('newContent') %} 
</code></pre>

<p>And you are fine.</p>

<p>Currently you are fetching all entries within your section. If you don't want to display them all but only the current you should not do that </p>

CC BY-SA 4.0
2018-05-19T20:38:22.800Z
2018-05-19T20:38:22.800Z
Robin Schambach
<p>I'm working on a website that was developed by someone else before me, I added a new section and template, I uploaded all my files, created my new section and field and created my first entry everything was looking good, I decided to add a second entry to ensure that everything is working, but when I preview the entry Craft is showing both entries on one page instead of creating separate page for the entries. Please, can someone tell what is the reason for that I'm new using Craft below is the code that I wrote for the new template? </p>

<pre><code>{% extends "layout/_layout" %}

{% block breadcrumbs %}
    {% include 'includes/_Breadcrumbs' with { 'currentTitle' : entry.title } %}
{% endblock %}

{% block content %}

    {% for entry in craft.entries.section('newContent') %}

        {% include 'includes/_pageTitle' %}

        {# Top Content Section 1 #}
        &lt;div class="ContentBox section-one"&gt;
            &lt;div class="Container"&gt;
                &lt;div class="flex"&gt;
                    &lt;div class="flex-content"&gt;
                        {% for block in entry.Headline %}
                            &lt;h2 class="content-title Content-header"&gt;
                                {{ block.headline }}
                            &lt;/h2&gt;
                            {% if block.subHeadline %}
                                &lt;h4 class="content-subtitle subHeader"&gt;{{ block.subHeadline }}&lt;/h4&gt;
                            {% endif %}
                        {% endfor %}
                        {% if entry.leadInText %}
                            {{ entry.leadInText }}
                        {% endif %}
                    &lt;/div&gt;
                    &lt;!-- Sidebar section --&gt;
                    &lt;div class="aside sidebar"&gt;
                        {% include 'includes/_asideBox' %}
                    &lt;/div&gt;
                    &lt;!-- End sidebar section --&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        {# Start Sections 2 - 5 #}
        {% for block in entry.newContentMatrix %}
            {% switch block.type %}

                {% case "twoColumnSection" %}
                    {% include 'includes/_sectionTwo' %}

                {# Section 3 #}
                {% case "paragraphSection" %}
                    {% include 'includes/_paragraphSection' %}

                {# Double list Section #}
                {% case "listSection" %}
                    {% include 'includes/_listSection' %}

                {# Section 4 #}
                {% case "miniFormSection" %}
                    {% include 'includes/_miniFormSection' %}

                {# Call to action Banner #}
                {% case "callToActionBanner" %}
                    {% include 'includes/_callToAction' %}

            {% endswitch %}
        {% endfor %}

    {% endfor %}

    {% includeJsFile "/public/ui/js/accodion-menu.js" %}
    {% includeJsFile "/public/ui/js/SideNavTrigger.Js" %}

{% endblock %}
</code></pre>

CC BY-SA 4.0
2018-05-18T21:19:04.123Z
Hard for me to tell what's going on from the example code. By default if you don't specify an orderBy parameter on your query, Craft will go with the entries postDate.  Can you edit the question to share what exactly you're seeing and what you expect the behavior to be?
Brad Bell
<entry>
New entry showing under old one
# New entry showing under old one

(Asked by: username_0 on 2018-05-18)

I'm working on a website that was developed by someone else before me, I added a new section and template, I uploaded all my files, created my new section and field and created my first entry everything was looking good, I decided to add a second entry to ensure that everything is working, but when I preview the entry Craft is showing both entries on one page instead of creating separate page for the entries. Please, can someone tell what is the reason for that I'm new using Craft below is the code that I wrote for the new template? 
{% extends "layout/_layout" %}

{% block breadcrumbs %}
    {% include 'includes/_Breadcrumbs' with { 'currentTitle' : entry.title } %}
{% endblock %}

{% block content %}

    {% for entry in craft.entries.section('newContent') %}

        {% include 'includes/_pageTitle' %}

        {# Top Content Section 1 #}
        
            
                
                    
                        {% for block in entry.Headline %}
                            
                                {{ block.headline }}
                            
                            {% if block.subHeadline %}
                                {{ block.subHeadline }}
                            {% endif %}
                        {% endfor %}
                        {% if entry.leadInText %}
                            {{ entry.leadInText }}
                        {% endif %}
                    
                    
                    
                        {% include 'includes/_asideBox' %}
                    
                    
                
            
        

        {# Start Sections 2 - 5 #}
        {% for block in entry.newContentMatrix %}
            {% switch block.type %}

                {% case "twoColumnSection" %}
                    {% include 'includes/_sectionTwo' %}

                {# Section 3 #}
                {% case "paragraphSection" %}
                    {% include 'includes/_paragraphSection' %}

                {# Double list Section #}
                {% case "listSection" %}
                    {% include 'includes/_listSection' %}

                {# Section 4 #}
                {% case "miniFormSection" %}
                    {% include 'includes/_miniFormSection' %}

                {# Call to action Banner #}
                {% case "callToActionBanner" %}
                    {% include 'includes/_callToAction' %}

            {% endswitch %}
        {% endfor %}

    {% endfor %}

    {% includeJsFile "/public/ui/js/accodion-menu.js" %}
    {% includeJsFile "/public/ui/js/SideNavTrigger.Js" %}

{% endblock %}

**Tags:** entry

> **Comments:**
> **username_1**: Hard for me to tell what's going on from the example code. By default if you don't specify an orderBy parameter on your query, Craft will go with the entries postDate.  Can you edit the question to share what exactly you're seeing and what you expect the behavior to be?  

---

## 1 answers

### Answer by username_2 on 2018-05-19. Score: 1 | Accepted answer

Craft will inject the current entry by default in your template. All you have to do is to remove this loop
{% for entry in craft.entries.section('newContent') %} 

And you are fine.
Currently you are fetching all entries within your section. If you don't want to display them all but only the current you should not do that


---

