_wp_page_template:
This is displayed in whatever page I create. Is there any way I can get rid of it?
Also, whenever I create pages, I cannot access them with the slug - i.e. http://www.domain.com/wordpress/slug - the only way I can see them is by clicking on view in the "manage pages" secion - where the URI is http://www.domain.com/wordpress/?page_id=87. Is there anything I can change to fix this?
I was getting the wp page template printed at the bottom of my Page also. I think it was because I was using my index template instead of a page template. Not sure though. But I think I just eventually copied my index template into a Page template, then it went away.
Thanks for the tip - I made a page.php and put it in my theme file. Now it shows _wp_page_template: page.php at the bottom.
The page.php is essentially the same as index.php with some stuff removed off the menu. Is there something I need to change on the page.php to get rid of this?
Odd - Are you using any template tags which display post-meta data (aka custom fields) such as the_meta()?
Or perhaps you have a plugin which use meta data and isn't written very robustly. That seems more likely - try disabling plugins one at a time to see if you can catch the one that might be doing it. Then talk to the plugin author.
Maybe neither is the case, though, but those are the only things I can come up with.
Doesn't seem to be the trouble with the plugins - I was running only two: My Stuff and WP Plugin Manager. I keep getting the text even if I disable both plugins. :(
Try switching to one of the included themes (default/kubrick or classic) to see if one of those gets rid of the problem. That might give a hint where it's coming from.
Thanks mdawaffe! That seems to be the problem, though I am kicking myself why I did not try it before troubling the nice WP community!
Now to sit and fiddle with my theme settings :P
Huh. Must be some funny code in your Template. Good luck finding it :)
Okay - fixed it. There was a bit asking for some post-meta data - I just removed it. Now it's okay!
Thanks for the help mdawaffe!
bear with me - I'm new to this! I am currently re-working Kubrick. I wanted custom fields/values on Pages so inserted <?php the_meta();Â ?> into page.php. using the write page admin panel - if I create a custom key/value pair for a page, the system puts 2 entries into the database. My created key/value and another of '_wp_page_template' paired with a value of 'default'. When I display the page, both pairs are shown. Inspecting the Db shows both to be saved. This is replicable every time. Any ideas how I can get rid of the bogus row being created please?
Crazygirl
Member
Posted 6 years ago #
I was able to remove the "_wp_page_template" key from showing on the Page by going in to Edit the Page, then going down to the Custom Fields box, then clicking "(show hidden)". This will show the "_wp_page_template" key and allow you to delete it. Once deleted, it will not show up on the page anymore.