Forums

[resolved] Stop loop in page.php (3 posts)

  1. newkind
    Member
    Posted 2 years ago #

    Hi,
    I've got a problem with my page.php loop.
    I've got three columns on that site - 1 - main and 2 at the bottom. I'm executing the loop for the main column using standard <?php if (have_posts()) : while (have_posts()) : the_post(); ?> end end it using <?php endwhile; endif; ?> before 2 columns at the bottom. The problem is that the full content of all of the posts are visible and i'd like the full content to be shown only for the 1 column and the for the both on the bottom to show the 'more' hyperlink ... Is there a way to stop the main loop or any other solution ?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. newkind
    Member
    Posted 2 years ago #

    <?php
    	global $more;
    	$more = 0;
    ?>

    Solved my problem :) Thank u!

Topic Closed

This topic has been closed to new replies.

About this Topic