Shortcodes not outputting in correct divs October 19, 2022 by Tarik Billa the_ID outputs (echoes) the ID. Use get_the_id () Same for the_title.. Use get_the_title