RyanRoberts
11/12/2012 - 1:45 PM

If no results I don't want the .articles div or main h1. Without using {if no_results} to output content.

If no results I don't want the .articles div or main h1. Without using {if no_results} to output content.

<div class="articles">
	<h1>Recent Articles</h1>

	{exp:channel:entries channel="articles"}
	<article>
		<h1>{title}</h1>
		{body}
	</article>
	{/exp:channel:entries}

</div>