Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to make an url with meta_key=post_views_count.

E.g: http://www.mysampleweb.com/?meta_key=post_views_count&orderby=meta_value&order=DESC

So the posts should be ordered by Views.

Views are counting in the backend - but the url doesn't work. Just orders after newest/oldest posts.

How can I setup this query? Like it is above, it's not working.

Do I have to put something into functions.php - a rewerite Rule?

Thank you!

AD

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.