• Shortcodes included through either wysiwyg editor or do_shortcode method are not working.
    When a shortcode is included through a wysywig editor the page will show the shortcode markup instead of interpreting the code.
    Ex : If I include
    [contact_form]
    into product description I will get on the page front end a string “[contact_form]’.
    A shortcode inlucded to a page through the php do_shortcode('[contact_form]') method doesn’t show up at all.

    • This topic was modified 9 years, 1 month ago by sdbox.
    • This topic was modified 9 years, 1 month ago by sdbox.
Viewing 3 replies - 1 through 3 (of 3 total)
  • what theme are you using?

    is the ‘product description’ part of the theme or done with a plugin?

    is the [contact-form] shortcode part of your theme, or do you have the corresponding plugin installed and activated?

    have you tested if the shortcode works if you enter it into the standard content of a static page or into a normal post?

    have you tried to use echo do_shortcode('[contact-form]') https://developer.wordpress.org/reference/functions/do_shortcode/#user-contributed-notes

    Thread Starter sdbox

    (@sdbox)

    Hi Michael,
    echo do_shortcode sort out partially the issue but including a standard shortcode snippet to a normal post still doesn’t work
    [button link="http://google.com"]Go to Google[/button]

    what plugin are you using for the [button] shortcode?
    or is that part of your theme?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Shortcodes are not being executed’ is closed to new replies.