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.
This is the code I am using for my pages:
<?php while (have_posts()) : the_post(); global $more; $more = 1; the_content('',true); endwhile; ?>
- The topic ‘Stripping the Teaser (read more etc)’ is closed to new replies.