Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
946 views
in Q2A Core by
In >Admin >Viewing we have the option to:

"Show view count in question lists:"

However, I like to show this information only on the question page itself, not in the entire list. How to add this?

1 Answer

+2 votes
by
selected by
 
Best answer

Basically you need to remove the call to $this->view_count in q_item_stats.

Then add a call to $this->view_count in the place you wish to show it. You can wrap it in if ( $this->template == 'question' ) {} so it only appears on the question view page.

by
thx for the tip.

I used a plugin layer, overwriting function q_view_clear() {...
and calling:

$views = $this->content['q_view']['raw']['views'];

Works :)
...