`entry` variable pre-populated on a frontend form I set up a single page "Add Post" in the CP.

In following the example here https://craftcms.com/docs/templating/entry-form my form title input field is pre-populated with "Add Post" This is obviously not the desired result. When I include an entry id for modifying the post it grabs the title from the post as it should. 

How do I create a new post without having a form pre-populated with "Add Post" in the title input field?


    
    
    

{% macro errorList(errors) %}
    {% if errors %}
        &lt;ul class="errors"&gt;
            {% for error in errors %}
                &lt;li&gt;{{ error }}&lt;/li&gt;
            {% endfor %}
        &lt;/ul&gt;
    {% endif %}
{% endmacro %}

{% from _self import errorList %}

&lt;label for="title"&gt;Title&lt;/label&gt;
&lt;input id="title" type="text" name="title"
    {%- if entry is defined %} value="{{ entry.title }}"{% endif -%}&gt;
This example code makes use of the entry variable set by Craft to retrieve previously posted data. The variable is set if you encounter validation errors or if you want to modify upon an already saved entry (→ include the entryId in a hidden input field).

The problem is, that you already have an entry variable available to your template because every entry page comes pre-populated with one (if the URI is matched).

Easiest fix would probably be to make this single entry not match the URI set in the section's CP settings. Another idea would be to only fix that title problem and modify the example code:

{% if entry is defined %} value="{{ entry.title }}"{% endif %}


and use this instead:

{% if entry.errors is defined %} value="{{ entry.title }}"{% endif %}