• There seems to be a limitation when using apostrophe’s in shortcodes.

    [callout title=’Why Can’t We Just Get Along?’] produces:
    array(6) { [0]=> string(10) "title='Why" [1]=> string(5) "Can't" [2]=> string(2) "We" [3]=> string(4) "Just" [4]=> string(3) "Get" [5]=> string(8) "Along/?'" }

    Whereas [callout title=’Why Can&rsquo ;t We Just Get Along?’] produces:
    array(1) { ["title"]=> string(34) "Why Can’t We Just Get Along?" }

    Anyone know of a workaround for this, besides using &rsquo ;?

Viewing 1 replies (of 1 total)
  • Thread Starter Barret Ruttan

    (@capn-code)

    D’oh! I forgot that Shortcode attributes can be enclosed in double quotes.

    So: [callout title="Why Can't We Just Get Along?"] will work.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcodes & apostrophe’ is closed to new replies.