How can I get the custom post title? September 13, 2022 by Tarik Billa Simply, echo get_the_title( $slide ); the_title(), or get_the_title() will not work here.