Adding some HTMl code as posts doesn’t work but it does if it is added directly in the file? October 23, 2022 by Tarik Billa Finally, figured out, I needed this: remove_filter('the_content', 'wpautop');