Duplicate post problem October 22, 2022 by Tarik Billa if( $post->ID == $do_not_duplicate ) continue; This fixed it for me