• pbernard006

    (@pbernard006)


    Hello,
    The plugin : appointment hour booking does not work with the do_shortcode() function.
    Only the e-mail field, the captcha and the submit button are displayed.
    I think, all the JS files that are used for the proper functionning of the plugin are not loaded.

    Git Repository : https://github.com/pbernard006/xtrembarbershop-website

    Thank for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    While the missing JS files may be the cause of the problem you see, they would not have anything to do with do_shortcode() working or not. Each executes in a completely different environment. If do_shortcode() doesn’t work as expected, the problem is more likely within your PHP shortcode handler function. If you want someone to review it, either link directly to it, or place it in a gist.

    Problems with JS files not loading might be due to how they are enqueued in PHP with wp_enqueue_script(). Again, if you want someone to review it…

    If you expect someone to dig through your plugin source code looking for the related code, you greatly diminish the possibility of anyone being willing to help.

    Andry

    (@blackstar1991)

    Sometime i have the same problem when use shortcode in seo text.
    <?php echo do_shortcode(get_the_content()); ?> It helped me

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘do_shortcode does not work’ is closed to new replies.