I don't know much about shortcode. I have a countdown plugin with this plugin i'm displaying 'countdown timer', i can post it with shortcode E.g [countdown event="Event with hour & minutes" date="12 June" hour="18" minutes="54"]. I tried to fetch it with get_post_field('post_content', $post->ID) but with this way I can not displaying the 'countdown timer' as visually, just fetch the lettering. Is it possible to show countdown plugin with shortcode where i want. Hope you can help. I really need it.

有帮助吗?

解决方案

Try changing

get_post_field('post_content', $post->ID)

to

echo do_shortcode(get_post_field('post_content', $post->ID));

It should work.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top