Very quick question. I'm relatively new to Expressionengine and unsure what could be causing my issue. So I have an Article template, inside of it I have comments:
<!-- Comments -->
<div class="comments">
<div class="existing-comments">
<h3> Comments </h3>
{exp:comment:entries sort="desc"}
<div class="comment">
<div class="initial">
{if no_results}
<p class="center"> Be the first to write a comment. </p>
{/if}
<p>
{comment}
</p>
<span class="posted-by">Posted by <a href="{if url}{url}{if:else}#{/if}">{name}</a> on <strong>{comment_date format="%Y %m %d"}</strong></span>
</div>
</div>
{/exp:comment:entries}
</div>
<div class="comment-form">
<h3> Leave a comment </h3>
{exp:comment:form channel="blog_post" rules:name="required|email=required|comment=required"}
<ol>
<li>
<label>YOUR NAME<span>*</span></label>
<input type="text" name="name" value="{name}" required/>
{if error}
<p class="error">Name is a required field. </p>
{/if}
</li>
<li>
<label>YOUR EMAIL<span>*</span></label>
<input type="email" name="email" value="{email}" required/>
{if error}
<p class="error">Please enter a valid email. </p>
{/if}
</li>
<li>
<label>YOUR WEBSITE</label>
<input type="text" name="url" value="{url}" required/>
</li>
<li>
<label>YOUR COMMENT<span>*</span></label>
<textarea name="comment">{comment}</textarea>
{if error}
<p class="error">Comment is a required field </p>
{/if}
</li>
<li class="captcha">
{if captcha}
{captcha}
{/if}
</li>
<li class="submit"><button type="submit">POST COMMENT</button></li>
</ol>
{/exp:comment:form}
</div>
</div>
For some reason on only some of the articles the comment form and exp:comment:entries dissapear. 95% of articles are fine. Could you see if I made a mistake somewhere? Gone through 100 times through the code cant spot the difference.
I should also probably point out that comments are not nested. I use reCaptcha(if this makes a difference). Anybody encountered issue like this before?
Here is affected url: http://www.yourpeakstate.com/blog/the-4-secrets-to-living-your-dream-life-1