• 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

patgilmour

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 11, 2020 at 2:42 pm in reply to: Keep text formatting in Archive post content excerpt #496657
    patgilmour
    Member

    Here's the solution:

    add_filter('get_the_content_limit_allowedtags', 'childtheme_custom_allowedtags');
    function childtheme_custom_allowedtags() {
    	return '<em>'; // add whatever tags you want to this string, <b>, <strong>, etc.
    }

    I found the solution here: https://pixert.com/blog/enable-formatting-tags-for-content-limit-in-genesis-featured-posts-widget/

    February 10, 2020 at 9:06 pm in reply to: Keep text formatting in Archive post content excerpt #496629
    patgilmour
    Member

    Anyone?

    February 8, 2020 at 5:00 pm in reply to: Keep text formatting in Archive post content excerpt #496571
    patgilmour
    Member

    Looks like my question could be rephrased:

    - How can I preserve text formatting for content in genesis_entry_content on the archive page?

    February 8, 2020 at 4:38 pm in reply to: Keep text formatting in Archive post content excerpt #496570
    patgilmour
    Member

    I thought this was a Genesis/theme question, but it appears to be a general WordPress question instead.

    I tried to resolve the issue with this plugin: https://wordpress.org/plugins/advanced-excerpt/

    But it doesn't work with Genesis it seems.

    Any other ideas?

    October 22, 2015 at 5:55 am in reply to: Duplicate titles in genesis_entry_header #168755
    patgilmour
    Member

    My bad.

    I was using the_title()instead of get_the_title() so my theme was echoing the title into the page at genesis_entry_content – where I was calling my function.

    October 22, 2015 at 5:39 am in reply to: Duplicate titles in genesis_entry_header #168752
    patgilmour
    Member

    Thanks for getting back to me, Andrea. Unfortunately, I can't make the site public until the end of the month. Would it help to post the page source – or anything else?

    October 11, 2014 at 8:59 pm in reply to: Search results: Excerpt when Content is empty #127526
    patgilmour
    Member

    I did try modifying the code found on Sridhar Katakam's page:

    Display full content in category pages for selected categories in Genesis

    Like so:

    add_action( 'genesis_before_loop', 'adam_search_result_filter' );
    function adam_search_result_filter() {
    
    	global $post;
    
    	if ( ( is_search() ) && ( get_post_type( $post ) == 'webcast' ) ) {
    
    		remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    
    		add_action( 'genesis_entry_content', 'adam_do_search_content' );
    
    	}
    
    }
    
    function adam_do_search_content() {
    
    	echo get_the_excerpt() . 'bingo';
    
    }

    But this removed the genesis_entry_content for every result listed.

    So, I guess genesis_before_loop isn't the right filter. Any suggestions what to use?

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

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