Support » Fixing WordPress » Shortcode in do_shortcode

  • Is it possible to execute a shortcode within do_shortcode?

    As in : <?php echo do_shortcode('[shortcode1].[shortcode2].[/shortcode1]');?>

    I can’t seem to get the syntax right

Viewing 3 replies - 1 through 3 (of 3 total)
  • Create a new function, use add_shortcode, call function where needed.

    Source.

    Thanks for the link, looks good

    Actually this tutorial doesn’t quite address by problem. This tutorial basically combines two shortcodes to execute with a single function.

    My problem is trying to insert one shortcode within an opening and closing shortcode. Even with making a new function I still am stuck on not knowing how to put [shortcode2] within [shortcode1] with php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode in do_shortcode’ is closed to new replies.