Hey all! I’ve been struggling with this for a while and I was wondering if someone could give me a pointer? I am working on the news section of my site and I’m attempting to link from a news listing to a specific article page that is dynamically created based on a PHP variable that I’m passing through the linked URL (e.g. http://www.mysite.com/index.php?article=article-name ).
What I currently have doesn’t display anything at all! Here it is:
{exp:channel:entries channel="news_updates" url_title="<?php echo $_GET['article']; ?>"}
<div class="news_date">{entry_date format="%F %j, %Y"} </div>
<div class="news_title">{title}</div>
<div class="news_summary">{article_summary}</div>
{/exp:channel:entries}This seems rather strange since all entries display properly if I exclude the ‘url_title=’ selector on the first line:
<pre><code>{exp:channel:entries channel="news_updates"}</code></pre>
I’ve looked through the EE documentation, rechecked my php code, and done some searches and still cannot seem to find the issue.
I appreciate any insight. Thank you!