Colleagues.
We are creating a new system and removing the WP, but the news we still get from WP, like old news. But when we bring the column post_content, it brings me the tag that appears next to the image:
[caption id="attachment_9472" align="alignleft" width="350"] (here the image appears) [/ caption]
I tried to use strip_tags, but it did not work. We are picking up without using WP, but our own system. How do I remove these tags and leave only the image?
I'm getting it this way:
<?php echo utf8_encode(strip_tags($jmVisualizar->post_content),'[caption]'); ?>