Reputation: 1820
What would cause a wordpress page to show content on the front end but be empty in the admin.
I am just taking over a someone elses site. I am trying to import the pages onto my server but I am only getting blank pages on both the front end and the back end.
Posts are showing correctly. It just most pages.
Upvotes: 0
Views: 2546
Reputation: 1011
Sackling..
The problem is in charset of db. Open wp-config.php file and just change charset to utf8 & comment the old one.
define('DB_CHARSET', 'utf8');
Thanks
Upvotes: 3
Reputation: 76
Look to the right side on the edit page screen, "Page Attributes" Under Page attributes look for "Page template". That probably is the reason for it to show content. Developers create page templates, add the content they want to show directly in the page template and set that page template to Wordpress Page.
A page template is basically a php file added to your active Theme's directory. You could just ftp into the server and see the files, you'll have to look into each .php file as the name of the file doesn't really matter. It could be anything. However the page template's name which you saw on the edit page screen's dropdown, should be written in the php file's header.
So if your page template is "Custom Home", someone could have made a file called home-new.php but when you open the file you'll see something like this
<?php
/*
* Template Name: Custom Home
*/
get_header();?>
That probably is where the content is coming from.
Upvotes: 1