I have come across this issue and I cannot figure out what I am doing wrong.
I have this code in an include file:
<!-- .site-title -->
<hgroup>
{exp:channel:entries channel="site_image" limit="1"}
<h1 class="site-title"><a href="{site_url}" title="title here" rel="home"><img src="{site_image}" alt="{title}"></a></h1>
{/exp:channel:entries}
{if segment_1 == ""}{site_intro}{/if}
</hgroup>
<!-- .site-title -->
This all seems fine and works on all the pages of the site it is embedded into, except static pages created with the 'Pages Module'. On those pages I get this output from the browser:
<!-- .site-title -->
<hgroup>
</hgroup>
<!-- .site-title -->
Nothing at all appears between the tag pair. Any help would be greatly appreciated.
url_title="{segment_1}"
anddynamic="no"
to your{exp:channel:entries}
tag.