WordPress.org

Ready to get started?Download WordPress

Forums

Stripping the Teaser (read more etc) (1 post)

  1. thatstevensguy
    Member
    Posted 2 years ago #

    Hey,

    I have been using WordPress for a while now. Recently a client wanted to have custom excerpts on the homepage. I have achieved this perfectly on the homepage side - however on the content pages I am seeing the following, it is causing unwanted spacing due to the paragraph element. I have hidden it with a dodgy ':first-child' selector in CSS, but I am wondering why it is even there if I am stripping the teaser from the content.. and if I can remove it properly.

    <p><span id="more-17"></span></p>

    This is the code I am using for my pages:

    <?php
    	while (have_posts()) : the_post();
    		global $more; $more = 1;
    		the_content('',true);
    	endwhile;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by thatstevensguy
  • This topic is not resolved
  • WordPress version: 3.2.1

Tags

No tags yet.