Support » Plugin: PHP Code for posts » Snippet in snippet not showing

  • Resolved calltech


    Hi All!

    I can show the content of [php snippet=1] in a simple page. But I created [php snippet=2] and added this shortcode in the [php snippet=1], which is only show the [php snippet=2] text. I would like to show php snippet content in php snippet content.

    Please help someway.

    Thank You,

Viewing 1 replies (of 1 total)
  • Plugin Author Jamie Fraser


    Hi Calltech

    In order to call a shortcode from within the PHP shortcode you need to use the do_shortcode WordPress function,

    So in your request, I think the correct way would be to do
    echo do_shortcode('[php snippet=2]');

    I hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘Snippet in snippet not showing’ is closed to new replies.