WordPress: Add custom text to posts matching a tag

The example below shows how to add text to the bottom of posts, based on specific conditions. To get the right value for “custom_text”, you likely just want to add a paragraph tag, but you can copy existing HTML from your site to get a good example. add_filter(‘the_content’, ‘custom_category_text’); function custom_category_text($content){ global $post; $custom_text = …