Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112776

shawnswander on "Custom Page Templates not loading"

$
0
0

I raed through http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates before I get redirected there and I read several threads that didn't help on this issue. There seems to be confusion between themes and templates and it makes searching a pain.

I want my index page to load as my home page and I have incuded some excerpts of News and Events as blogs as well as some static home page stuff.

I also want to let users click the news page and view my latest blog and the archive. I got all that working but the template doesn't load for my news page. So it looks bare.

I did a view source and its trying to load my default template and so the css isn't pointing to the right place.

But im more concerned about why its not trying to load theme\custom_theme_here\news.php as the template rather than the default

So perhaps someone could explain this better to me as a checklist perhaps filename - contents - file location

I have
news.php - define('WP_USE_THEMES', true);require('wp-blog-header.php'); - root directory (where wp is installed)

"News"(page name) is a page I created on admin and chose the news theme from the drop menu.

news.php - <?php /* Template Name: news */ ?> ...my tamplate here - themes\my_theme_name\news.php

Trying to figure out what I'm doing wrong here.
Thanks


Viewing all articles
Browse latest Browse all 112776

Trending Articles