Attempt to display full post content unsuccessful
-
I am trying to display the full content of the first post on the page, then abbreviated content below that. I have used the global $more and $more=1 but it still doesn’t display the full content of the post.
<?php query_posts( array ( ‘posts_per_page’ => 1 ) );
global $more; // Declare global $more (before the loop).
while (have_posts()): the_post(); ?>
<span class=”keynote_title”><?php the_title(); ?></span>
<div>
<?php
$more = 1; // Set (inside the loop) to display all content, including text below more.
the_content(); ?></div>
<?php endwhile; ?>Page may be viewed at https://virtualwebsource.com/development/tkg/
- The topic ‘Attempt to display full post content unsuccessful’ is closed to new replies.