Plugin Author
Paul
(@paultgoodchild)
Always best to Google your questions, or search the WordPress support forums. You’re not the first to ask this sort of quesiton.
https://developer.wordpress.org/reference/functions/do_shortcode/
-
This reply was modified 8 years ago by
Paul.
I have questions about your plugin…
Do you direct me to the developer shortcode url?
Plugin Author
Paul
(@paultgoodchild)
If you have questions about the plugin, I wouldn’t direct you to the shortcode URL. Your question is about using shortcodes in PHP. I sent you the solution.
Using shortcodes in PHP isn’t about my plugin, it’s about WordPress shortcodes in PHP. You just so happen to be using a shortcode from this plugin.
i have a question:
i need show content from single.php page for custom country: like “us” country
<?php echo do_shortcode(‘[CBC country=”us” show=”yes”]hello world[/CBC]’);?>
this code is true
but i have many many code (php) between your shortcode like php if , php echo variables, WordPress custom meta and any more!
you dont have any solution for me?
thanks