• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Force excerpt to display link in content

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Force excerpt to display link in content

This topic is: not resolved

Tagged: excerpts

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by handsun.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 15, 2016 at 7:14 am #176579
    handsun
    Participant

    Hello, I need the links in the content of the excerpts to be live, I am wondering if there is a non-hacking way to do this?


    Clean affordable water by Kinetico

    http://www.kwater.com/blog/
    January 15, 2016 at 7:15 am #176580
    handsun
    Participant

    I forgot to click notify me, so replying to my own post! Thanks!


    Clean affordable water by Kinetico

    January 15, 2016 at 9:37 am #176593
    Victor Font
    Moderator

    WordPress automatically strips HTML from excerpts. This article from Brad Dalton should help: http://wpsites.net/wordpress-tips/add-back-html-tags-stripped-from-content-limit-excerpts-in-wordpress/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 15, 2016 at 10:00 am #176596
    handsun
    Participant

    Thanks Victor! I am using Genesis Featured Posts , I added this to bottom of functions.php but links still do not show up, `add_filter( 'get_the_content_limit_allowedtags', 'get_the_content_limit_custom_allowedtags' );
    /**
    * @author Brad Dalton
    * @example http://wp.me/p1lTu0-a5w
    */
    function get_the_content_limit_custom_allowedtags() {
    // Add custom tags to this string
    return '<script>,<style>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>';
    }`

    http://www.kwater.com/blog/


    Clean affordable water by Kinetico

    January 17, 2016 at 11:39 am #176760
    handsun
    Participant

    I found this and it worked for me! It replaces the old excepts with a new one then configures it to allow html and a lot of other goodies!!
    http://wordpress.stackexchange.com/questions/141125/allow-html-in-excerpt


    Clean affordable water by Kinetico

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble