Support » Plugin: Jetpack by » [Plugin: Jetpack by] Strip Shortcodes from New Post Email

  • I am using a theme-specific shortcode ‘[custom_frame_center]’ to display post images within a frame. When a user gets a new post email notification via JetPack Blog Subscriptions, the shortcode tags are displayed on either side of the image in the email. How do I get rid of these?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am trying to strip the shortcode as well, i found this function strip_shortcodes which can strip off the shortcode. However it will strip off the content enclosed by the shortcode.

    For example,
    "[myshortcode var1="1"]blah blah blah[/myshortcode] na na na"

    after parsing the above text with strip_shortcodes($text),

    The output will be:
    "na na na"

    What i want is just to strip off the tag itself rather than stripping the tags together with the content enclosed within the tag.

    Anyone know of any ready function to do that? I am lazy to code it myself.

    kentzo –

    I am really, really new to all of this. Where did you put the function to strip the shortcodes?

    Same problem. The shortcode in my case is Pretty File Links. The shortcode appears in the e-mail from Jetpack, like this:

    [prettyfilelink src=”” type=”pdf”]Olympian symbol cards pdf[/prettyfilelink]

    I don’t expect Pretty Links in the e-mail, but regular links instead of the shortcode would be good.

    Is there any chance of a general Jetpack fix? Or are the different types of shortcodes too numerous?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Jetpack by] Strip Shortcodes from New Post Email’ is closed to new replies.