post content – How to display tags with post_content

Question

I have this code to display the content of a specific post outside the loop (actually in the archive.php template file). How do I include the tags?

<?php $my_id = 1576; $post_id_1576= get_post($my_id); $content = $post_id_1576->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>

0
Pete 2 months 2021-12-08T06:52:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse