WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts FlexSlider
[resolved] Need Links Allowed in Description of Slider (2 posts)

  1. ssalinas24
    Member
    Posted 6 months ago #

    I have turned off the link to post settings in the widget, and I want to allow external links in the description of the slider. I have added a link to one of my descriptions, but when it renders in the slider, the link tag has been removed. Any idea why this could be happening?

    https://wordpress.org/plugins/recent-posts-flexslider/

  2. David Laietta
    Member
    Plugin Author

    Posted 6 months ago #

    The slider is set to display a custom excerpt of content, and HTML tags have been stripped out to avoid the more common issue of shortcodes or unnecessary HTML being displayed on the excerpt.

    While I can't vouch for how this will affect excerpts elsewhere on your slides, you can change this by going into the recent-posts-flexslider.php file in the plugin directory, and edit line 230, near the bottom of the file.

    // Remove tags from excerpt
    $string = strip_tags( $string );

    Just delete those lines entirely (or comment line 230 with // like the line above) and your links will display.

    Thanks for trying the plugin!
    David

  3. David Laietta
    Member
    Plugin Author

    Posted 6 months ago #

    Sorry, forgot to mark this resolved.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.