• 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

Custom Quote Post Type

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 › Design Tips and Tricks › Custom Quote Post Type

This topic is: not resolved

Tagged: Custom Post Type, genesis sample, quote post type

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 3 months ago by Marcy.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 20, 2015 at 3:32 pm #159923
    mairagall
    Member

    Hi, I need to create a custom quote post type, something like this, I managed to add support for Quotes on my functions.php and some CSS styles (I'm using Genesis Sample). The problem I have is that I'm using post excerpts and need that those Quote posts show in full in all pages, not sure how to approach this.

    I appreciate any help, thanks!

    July 22, 2015 at 6:17 pm #160157
    Marcy
    Participant

    Is that your blog? It looks like it's all styled.

    It would be helpful to see your website link.

    When you add post formats to your theme (in functions.php), and then start a new post, you have an extra set of check boxes in the right hand sidebar of the post editor. These let you choose the post format. You still have the normal editor, so I don't understand how you need to use post excerpts.
    To style the Quote Format for instance you would just use something like this:

    .format-quote.entry {
    	/* add your styles here */
    }

    I have a blog post that may also be helpful to you.
    https://amethystwebsitedesign.com/add-and-style-post-formats-in-your-genesis-child-theme/


    Marcy | Amethyst Website Design | Twitter

    July 22, 2015 at 6:34 pm #160161
    mairagall
    Member

    Hi Marcy, thanks for your input. You can take a look at the test blog here, I added the Quote post type, and I can work with CSS to make it look as I need (I didn't finished yet), the only problem I have is that the quote post is not showing completely as I'm using the post excerpts option in Genesis Settings. I think I should add some custom loop but not idea how and where.

    M.

    July 23, 2015 at 1:05 am #160181
    Marcy
    Participant

    OK. Now I see what you need.

    This should work for when you are using excerpts. Add it to your functions.php

    // Filter the excerpt on quote post formats
    add_filter( 'get_the_excerpt', 'filter_do_post_quote_format_content' );
    function filter_do_post_quote_format_content($excerpt) {
    
    	if ( has_post_format( 'quote' ) && ( 'excerpts' === genesis_get_option( 'content_archive' ) ) ) {
    
    		$excerpt = the_content();
    		return $excerpt;
    
    	} else {
    
    		return $excerpt;
    	}
    }

    Marcy | Amethyst Website Design | Twitter

    July 23, 2015 at 11:39 am #160218
    mairagall
    Member

    Thanks Marcy, I'll try with that asap! It looks quite promising...

    July 24, 2015 at 2:37 pm #160352
    mairagall
    Member

    It worked! Many many thanks!

    July 24, 2015 at 2:51 pm #160355
    Marcy
    Participant

    I'm glad it worked for you.
    Your theme is really lovely, BTW! All the best.


    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2025 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