Confused on loading page content
-
I’m building my first full site into WP and I am rather confused on the process involved to load the content you enter via the WP Pages editor into the actual page.
For example, I am having a static home page and I have this in index.php of my theme file.
// Output header get_header('home'); // Start Code that wraps the content ***** Content of the page ****** // End Code that wraps the content get_sidebar(); get_footer();
Now the “Content of the page” should be the code/content that the user has control over via the WP Admin Pages menu.
How do I get this into the page? I have read you need to do something like this..
if (have_posts()) { /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content'); } }
But I’m confused as this uses another content page yet again (content.php). Why do I need to create another content page when all I need is the code/data from the pages content area? I don’t need to add any more coding myself.
Thanks!
- The topic ‘Confused on loading page content’ is closed to new replies.