Hi folks—
We’re on EE v2.4.0 - Build: date 20120123.
I’m having some trouble with ordering entries by view_count. Here’s our setup:
The single entry page:
{exp:channel:entries channel="ask_the_experts" limit="1" track_views="one"}
<h2>{title}</h2>
<p><strong>{expert_user_question}</strong><br />
{expert_answer}<br />
{/exp:channel:entries}As you can see, we have track_views=“one” there. Here’s the listings page:
<h3>Most Popular Questions:</h3>
<p><ul><br />
{exp:channel:entries channel="ask_the_experts" dynamic="no" orderby=”view_count_one”}<br />
<li><br />
<strong><a href="http://{page_url}">Q:// {expert_user_question}</strong></a></p>
<p>{expert_answer} - Views: {view_count_one}<br />
</li><br />
{/exp:channel:entries}<br />
</ul>So what is happening is that the views are being tracked because they’re spitting out with the {view_count_one} variable on the listings page. However, they are not ordering correctly. Even though an entry has a count of, say, 8 and the other has a count of 5, they’re not being ordered like that.
All caching is disabled from what I can tell.
Can anybody help?
Thanks,
Jeremy