• Resolved Chris Dillon

    (@cdillon27)


    Please consider this change in kc.front.php:L420:

    $pattern = get_shortcode_atts_regex();

    Your current pattern does not match WordPress so some shortcode attributes are not parsed. Your pattern expects attributes to be wrapped in double quotes. While the codex examples have double quotes, they are only required for attributes that have spaces. This is perfectly valid:

    [my_shortcode id=1 color=red title="My Page"]

    But those first 2 attributes will be stripped by your regex.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Chris,

    Thank you for your message. You have to use the standard as

    [my_shortcode id=”1″ color=”red” title=”My Page”]

    Hope that convenient for your plan.

    Best regards,

    Anthony

    Thread Starter Chris Dillon

    (@cdillon27)

    Thanks for the reply. I don’t mean to be difficult but this works everywhere else:

    [my_shortcode id=1 color=red title="My Page"]

    A standard, if not explicitly and unmistakenly declared, is defined by how the application natively works.

    Please consider changing that one line of code to improve your overall compatibility.

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