The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End the_excerpt Reply To: the_excerpt

Ilan Firsov

According to the documentation you should have a setup_postdata( $post ) call at the start of the foreach loop and a wp_reset_postdata() after the loop.