Adding HTML to posts with certain tags?
Welcome to WPSE. Additional markup for certain posts is more appropriately included in the template for that content type. If these are blog posts, then single.php is the likely template used for display, depending on how your theme is structured. The likely problem with the code in your question is that you are not using … Read more