Support » Themes and Templates » Adding post contents to a page

  • Can anyone help guide me in regards to putting the content of a post on a page? I’m talking in terms of the actual PHP tag.

    I’ve tried

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="title"><?php the_title(); ?></div>
    			<div class="description">
    				<?php the_content(); ?>

    but it won’t display any of the information.

    Thanks, guys!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding post contents to a page’ is closed to new replies.