• I built my own theme. I can get specific posts or post categories to display fine, but I can’t get any content on a static page to show up.
    I tried making a new template for the static pages, but that doesn’t work either – it just pulls up posts. I can’t find any reference to displaying static page content in the codex, so any help would be appreciated.

    Here is the page template I’m using:

    <?php get_header(); ?>
    
    		<div id="main_container">
    
    			<?php get_sidebar(); ?>
    
    				<section id="main_content">
    
    				<?php while (have_posts()): the_post(); ?>
    				<div class="maintitle"><?php the_title(); ?></div>
                    <?php the_content(); ?>
    				<?php endwhile; ?>
    
    				</section>
    
    			<?php get_footer(); ?>
  • The topic ‘Can't get page contents to display’ is closed to new replies.