I am trying to pass a php variable into the exp:channel:entries tag year attribute and not having much luck. Here is what I currently have:
<?php
$year = 2010; // hardcoded for example
?>
{exp:channel:entries channel="news_items" dynamic="no" year="<?php echo $year ?>"}
{/exp:channel:entries}Is this possible or is there a way to debug what is actually getting into the “year” attribute? It only works when the year is 2011 but anything older (2010, 2009) just returns all entries from 2011.
Using ee 2.1.3 (20110411)