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.
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
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
Related
Created a page
The address bar says digitalelectronics.ru/elementor-7/. But there is no such folder in the site. Tell me which file contains the template of the file displayed in the browser under the address digitalelectronics.ru/elementor-7. Looked at a temporary file (needed, searched)
Then I searched for the file by the text found in the chrome code (see immediately above) -
but found nothing
Tell me how to find the Elementor file displayed in the website builder?
What you are seeing is not a folder, it is the permalink of the post/page. Wordpress rewrites the url path based on your settings:
You can change that slug when you edit a post/page.
Classic Editor:
Gutenberg Editor:
See here for more info about permalinks.
To find out what php template is responsible for the page you are viewing have a look at the template hierarchy. It would usually be single.php if it is a post or page.php if it is a page.
Alternatively you can use a plugin like this one, or similar, that would always show what templates make up the page you are currently viewing.
The wordpress home page is empty, which claims to be the front page, and when I view the front page, which has a ton of content, and click edit page, it takes me to the word press page editor for home page, which is empty. Where can I locate the files for this homepage! In particular need to change the footer around on the theme fresh!
First check whether any template assigned for your home page (you can do via Page Attributes section on sidebar) and if yes, check for the particular template in your theme directory.
If Template section says Default Template, then look at the 'front-page.php' in your theme folder.
If you want to edit the footer, it would be probably 'footer.php'.
We have a site with a members-only section and WordPress in a subdirectory. Some of the members-only pages, forms, etc. are outside of WP. We created a Member Login form on our homepage using Dreamweaver 5.5. Is there a way to have WordPress accept that main login so that a member doesn't need to login again when going to a WP member-only page? Thanks for any help you can be in pointing me in the right direction. I know just enough PHP to be dangerous. Let me know if you would like to see the DW login code.
Yes, you are talking about creating your own custom template for a Wordpress page.
You can use the page you generated from Dreamweaver by renaming its extension to .php, unless it already is. Move it to the /wp-content/themes/yourtheme folder, where yourtheme is your currently active theme. On the top of the template, add these lines:
<?php
//
// Template Name: Login Form
//
?>
Go to Wordpress Dashboard > Pages > Add New. Add a page called 'Login' or whatever you need, select 'Login Form' as the Template under Page attributes, and you Publish.
Reference: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
I have WordPress installed in the main directory. I want to create a static page so that when the person clicks "click here". It goes to the wordpress blog.
I have tried this two ways thus far.
Created a custom page in wordpress and then had it set as a static page. Problem when someone clicked the linked it redirected back to the splash page.
Put the files in the main directory. Problem the person would have to go to www.example.com/splash.html to get there. I tried creating a htaccess but host gator will not let me.
edit: I figured it out using
<?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) && !$_SERVER['QUERY_STRING']) :
?>
What is the purpose of the splash page if its just one link on it?
One option is to create your page within wordpress and set the frontpage to show as a static page (under settings > reading). On that page link to your /blog/ category or to a custom template page that displays all your blog posts.
If you want to have the same design as the page currently has, you can make a new template out of you current index.php file.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
The simple option is to use a plugin.
http://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/
Gives you the option to Continue on or go back.
Quick question (quick deadline...I know I can use google).
I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up.
Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the posts...
Thanks for the help!
Create a Wordpress Page Template by making a page with any name and this comment at the top:
/*
Template Name: Blog Enitres
*/
Go create a page, use that as the template (there is a selector on the right hand side). Call it whatever and save it. This is your static page.
Then, after that, go down to Settings > Reading and change the 'Home' page to be the page you've created.
Then create an index.php and save it. This will be the template for the displayed posts. Create an empty page and select it at the 'Posts Page' in settings.
To learn more about this functionality go here.
To learn more about the Wordpress loop and how to display entries, visit codex.wordpress.org