I created a php file for a new page template, and it became available in the drop down menu on the Create a Page page, as normal.
But that page did not use the template I set it to. After a number of troubleshoots, replacing code, renaming php files, etc... I tried one more thing.
The template I made was for a single column page. There is an existing page on my site http://www.eworldinc.org/resources/ which is a single column page. It uses the Default Template. The page I was creating a new template for is http://www.eworldinc.org/entry/. So I set it to use the exact same template as http://www.eworldinc.org/resources/, expecting it to display as a single column page, but guess what...
Even when using the same template as http://www.eworldinc.org/resources/, which is single column, http://www.eworldinc.org/entry/ still shows up displaying the sidebar.
I don't really have any code to paste that would help, as it appears wordpress is just applying the templates I choose to any new pages.
What in the world is going on? Please help....
Romel Apuya answers:
are you using any caching plugins?
might need to clear cache.
robphat comments:
No. I am already thought of that, but I do not have any cache plugins activated anyway. Any more thoughts? It's just like Wordpress has decided that any new page created will reject the Template assigned to it.
Romel Apuya comments:
have you added
/* Template Name: whatever template name
*/
on the new php template you created?
also might want to make your price higher.
can you send me ftp and wp login details so i can look at the template files?
cheers,
Romel Apuya comments:
wow..u pasted the wp-admin details here.
you dont realize that its public?
Romel Apuya comments:
You must change the information in the top of the template:
old:
<?php
/*
Template Name: information
*/
?>
new:
<?php
/* Template Name: information */
?>
robphat comments:
I did that. I changed from
Old:
<?php
/*
Template Name: Entry
*/
?>
to New:
<?php
/* Template Name: Entry */
?>
But this made no change. Then I even deleted all the contents of the entire etnry.php file in wp dashboard Editor, and /entry still showed the same content. That page is not pulling loading any template, not matter what I set it to. It just has a mind of its own.
Another expert here says my host is using a low level chache like varnish-cache.org/
Lawrence Krubner answers:
You may wish to post a screenshot of your admin, just in case the experts might spot something subtle that you have over looked. In particular, a screenshot of the form where you create either a new page or a new post.
robphat comments:
OK. I've attached the screen shot of the page creator page.....
And these pages both use the same Default Template, but show up different:
http://www.eworldinc.org/resources/
http://www.eworldinc.org/resources/
And here's the code:
<?php get_header(); ?>
<?php global $is_home; ?>
<div id="content" class="content_inner" >
<?php if ( get_option( 'ptthemes_breadcrumbs' )) { yoast_breadcrumb('<div class="breadcrumb">','</div>'); } ?>
<h1 class="cat_head" ><span><?php the_title(); ?></span></h1>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post() ?>
<?php $pagedesc = get_post_meta($post->ID, 'pagedesc', $single = true); ?>
<div id="post-<?php the_ID(); ?>" >
<div class="entry">
<?php the_content(); ?>
</div>
</div><!--/post-->
<?php endwhile; else : ?>
<div class="posts">
<div class="entry-head"><h2><?php echo get_option('ptthemes_404error_name'); ?></h2></div>
<div class="entry-content"><p><?php echo get_option('ptthemes_404solution_name'); ?></p></div>
</div>
<?php endif; ?>
</div> <!-- content #end -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>