Ready to get started?Download WordPress


PHP Snippets
[resolved] carriage return added after every shortcode (2 posts)

  1. PhilipParker
    Posted 2 years ago #

    Great plug-in! It's working well...except:

    Right after every PHP snippet shortcode I insert in my WP page, the published html code includes a carriage return, which displays on the web page as a "space". So if I'm writing a sentence on the web page, and end it with a php-snippet-created string, followed by a period, it displays with a space between the php string and the period.

    I'm not sure if it's the plug-in doing this, or WP.

    It seems a small detail, but it's frustrating to have an extra space displayed where I don't want one, and I don't want to be forced to add the period to the php code, as that limits what I can do with that snippet.

    Thanks for any feedback you can provide.


  2. fireproofsocks
    Plugin Author

    Posted 1 year ago #

    Good question... the do_shortcode() function of WP along with the conversions that occur with wysiwyg fields could be causing this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic