WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] External Links Plugin Conflict (9 posts)

  1. Maraki
    Member
    Posted 1 year ago #

    Hello,

    Whenever i use the shortcode [display-posts] in a post, any links on that post are not automatically being displayed as "nofollow" nor they open in a new window which are features processed automatically on all links on my site by the External Links Plugin.

    Any ideas why this happens?

    thanks
    Andy

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    I've never used that plugin before, so can't say why it's not working. But my recommendation is to use an output filter to modify the output of Display Posts Shortcode to display links the way you want.

  3. Maraki
    Member
    Posted 1 year ago #

    I have pinpointed the problem but don't know why it happens.

    If [display posts] shows posts then everything is ok.

    If [display posts] shows my custom post types then the above problem happens. Also all line breaks in the text contained in the post are lost and i have to add <p></p>.. something i don't really need to do without [display posts]

  4. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry, but this sounds like an issue with your External Links Plugin, not Display Posts Shortcode. My plugin is properly outputting your listing of posts, but external links isn't properly filtering them the way you want.

  5. Maraki
    Member
    Posted 1 year ago #

    not really! even without a link, the format of existing text on the post is altered (i.e. line spaces are not preserved). This only happens when i use the [display-posts] shortcode and the output is custom post types.

  6. Daniel Bachhuber
    Hand Built
    Posted 1 year ago #

    @bill Display Posts Shortcode should apply the_permalink filters (same with the_title)

    apply_filters( 'the_permalink', get_permalink() )

  7. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, I didn't realize get_permalink() and get_the_title() didn't have the filters already applied.

    I just updated the development version, which you can download here ( https://github.com/billerickson/display-posts-shortcode/archive/master.zip ).

    @neodjandre, can you test this and see if this fixes it for you?

  8. Maraki
    Member
    Posted 1 year ago #

    ok i will but it's bad timing.. i am upgrading to a dedicated managed server and all my websites are down.. shows how much of a good provider i have.. then i will probably need to upgrade my databases, so it looks like i will be testing this next week - will keep you posted

  9. Maraki
    Member
    Posted 1 year ago #

    Hello Bill,

    Sorry for the late response. I just tested this and unfortunately i am still facing the same issues.

    i.e. the format of existing text on the post is altered (i.e. line spaces are not preserved)

    This only happens when i use the [display-posts] shortcode and the output is custom post types.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic