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 create a "trending" page that shows posts according to the views, but this page is not in the wordpress theme hierarchy.

I don't know where and how to add, I tried to create one and uploaded but showed "Page not found".

I guess I have to add something to the function file, or is there an alternative way to do this?

share|improve this question

1 Answer 1

What your asking is really quite simple, but you need to take your time to read about creating new page templates for WordPress.

Take a look at this.

You need to create a custom loop that shows your desired posts preferably with WP_Query for best practice.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.