WordPress.org

Ready to get started?Download WordPress

Forums

Adding post contents to a page (2 posts)

  1. richardescobedo
    Member
    Posted 5 years ago #

    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!

  2. Chrisber
    Member
    Posted 5 years ago #

    php code will not execute in a WordPress page without a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.