Display Page Content in an Index Page With WordPress


show more Displaying page content in an index page provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes show less
please wait ...

Displaying page content in an index page

When you open a page or a post or a index page in WordPress what you're really doing is asking the database to return specific cells from its tables to you, in a specific layout. This is what's called a database query. This means that if you know how to manipulate the database queries, you can ask the database to return any information you want and place it anywhere. That's what we're going to do now. In my site, I've created a new page. It's called Front Page. And in this page all I have is three paragraphs of text.

What I want to do now is get this text to appear on the Front Page itself, above the index. So when people visit my site they'll first see that welcome message and then they scroll down and see the index. To get this to work, we're simply going to call the front-page content and display it into index.php template. Here I'm going to teach you a trick. When I start adding this type of content into my site, say a content slider or a welcome message...

Displaying page content in an index page
Video duration: 7m 42s 3h 11m Intermediate Updated Nov 27, 2012

Viewers:

Displaying page content in an index page provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

Subject:
Web
Software:
WordPress
Author:
please wait ...