Support » Plugin: WP LinkedIn Auto Publish » Preserve line breaks

  • Resolved Voorsie

    (@voorsie)


    Line breaks in the custom message are not displayed on LinkedIn.
    I know this question has been asked several months ago, but as this persons notices it doesn’t look like it’s a limitation of LinkedIn, because when including POST_CONTENT it does indeed show line breaks on LinkedIn.

    I digged in a bit further in the code and did some debugging, but it seems like the line breaks are removed in an early stage from the ‘post_meta’.

    So, I believe, what happens is the following;
    1. You enter a custom share message with line breaks and POST_CONTENT included
    2. This custom share message is saved before being used, at this point the plugin (or wordpress) removes the line-breaks from the message.
    3. The plugin fetches the post_meta (with line breaks already stripped) and then replaces the POST_CONTENT shortcode with text which includes the line breaks.
    4. Message is shared on LinkedIn where only the line breaks in the POST_CONTENT are shown.

    I didn’t find it yet.. but maybe this gives you good directions and maybe you know directly where to modify it in order to work?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.