Sackling
Sackling

Reputation: 1820

Wordpress page showing content but admin for page is blank

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

Answers (2)

Bilal Hussain
Bilal Hussain

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

aman704
aman704

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.

CODEX

Upvotes: 1

Related Questions