最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Shortcodes not processing inside post content

programmeradmin0浏览0评论

I have shortcodes inside my post_content in a custom post type wordpress. But when I echo the post content, all the shortcodes are not getting applied.

What I've tried so far:

$post = get_post(post_id, OBJECT);
echo apply_filters('the_content', $post->post_content);

I've also applied the do_shortcode() function but that also doesn't process the shortcodes. I've already applied most of the solutions present on this platform but no luck. Any help would be highly appreciated.

Thanks & Regards

发布评论

评论列表(0)

  1. 暂无评论