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(); ?> </div>
but it won’t display any of the information.
Help?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.