• Resolved zaynab74

    (@zaynab74)


    Hello, I read in this forum the answer to add in a php page, but it does not work, only the code on that page is visible.
    I directly add the code:
    echo do_shortcode (“[slide-anything id = ‘1533’]”);

    but it does not work. please can help thank

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zaynab74

    (@zaynab74)

    I have done tests, the correct code would be like this:
    <?php echo do_shortcode(“[slide-anything id=’1533′]”);?>

    in case you can help others.thank

    Plugin Author simonpedge

    (@simonpedge)

    Yes, the “do_shortcode()” is a PHP function call.

    It therefore must be enclosed within the PHP opening and closing tags:
    <?php
    …. PHP code …
    ?>

    Thank you for clarifying, and hopefully this will prove helpful to somebody else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add carousel to home.php page’ is closed to new replies.