Can you show us some more of your code? Also, what version and build of EE are you on?
I’m not sure what how much more of the code is applicable, but I’ll try. I’m running 1.6.5. Also tried it on a dev server running 1.6.6. Same problem.
I have a template to display a single entry.
{exp:weblog:entries require_entry="yes" weblog="blogname" orderby="date" sort="desc" dynamic="on" limit="1" show_pages="no"}
Entry Data Here
{/exp:weblog:entries}
Below the entry data I have a box to display the 5 latest entries. I do not want to display the current entry.
{embed="boxes/latest-headlines" exclude="{entry_id}"}
Here is the code for the “Latest Headlines”
<div id="latest_headlines">
<h2>Latest Headlines</h2>
<p><ul><br />
{exp:weblog:entries weblog="blogname" entry_id="not {embed:exclude}" orderby="date" limit="5" dynamic="off" sort="desc"} <br />
<li><a href="http://{path=/entry/{url_title}">{title}</a></li><br />
</ul><br />
</div>
I think that gives a good indication of what I’m trying to do. It seems EE has a hard time passing along template variables to embedded templates.