Forums

Adding post contents to a page (2 posts)

  1. richardescobedo
    Member
    Posted 7 months 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 7 months ago #

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

Reply

You must log in to post.

About this Topic

Tags

No tags yet.