Support

Account

Home Forums Add-ons Flexible Content Field Content after custom loop inside flexible content Reply To: Content after custom loop inside flexible content

  • Try moving your wp_reset_postdata() calls inside your if($query->have_posts()) and if($postsQuery->have_posts()) statements.

    https://developer.wordpress.org/reference/functions/wp_reset_postdata/#comment-2325