Search code examples
wordpresswordpress-themingcustom-wordpress-pages

How to get do_shortcode() to stop stripping contents of a shortcode?


I have wp job manager installed and i have echo do_shortcode( '[jobs]' ); in side a custom template but for some unknown reason the shortcode won't output the required results of the [jobs] shortcode.

But when i use the shortcode in the wp editor it works fine, i have been at this for hours and cant seem to find a solution tot his problem any where.

If you have encountered this issue before please advise me how you fixed it.

Thanks in advance


Solution

  • In my case i had a javacript error in the browser console that's why do_shortcode() was not working correctly. I hope this helps someone else