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 was trying to make a new page trending.php and uploaded to the server but got this message.

Template Name: New Post

<?php get_header(); ?>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

this is the code. What is the problem???

share|improve this question
did you create a page in admin and assign this template to that page? –  Milo Jul 11 '13 at 0:04
The PHP is not executing. Where did you upload this? What is the URL? –  s_ha_dum Jul 11 '13 at 0:22
How did you upload it? With FTP, or through the Wordpress admin? If the latter, try the former. –  Steve Jul 11 '13 at 4:47
add comment

1 Answer

You need upload this trending.php file into your FTP theme folder


Once you upload this file into your theme folder location then Login to Wordpress admin and go Pages->New Page

On Right side Page Template Dropdown you should see "New Post" as a new page template, so you need select that "New Post" as the Page template and browse the Page once Publish. and it should work.


Its not only creating a file and browse that page via URL to see the page working.

share|improve this answer
add comment

Your Answer


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.