• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Amethyst Website Design logo

Amethyst Website Design

Affordable WordPress Website Design for Small Business

  • Home
  • About
  • Services
  • Praise
  • Portfolio
  • Blog
  • Contact »

Genesis Tutorials Themes

Add Full Quotes and Links for Post Formats with Excerpts

July 28, 2015 Updated on November 23, 2020 Marcy Diaz

Share this post:

TwitterFacebookPinterestLinkedInEmail
quote and link post formats with full content

When you use a Genesis theme that has post formats, you may want to use excerpts for some of the longer post formats on your blog and archive pages. But you may also want to display the full content for other formats, like quotes or links. This tutorial shows you how to add full quotes and links for post formats that use excerpts for longer content.

Set Your Content Archives to Excerpt

  • Go to Genesis > Theme Settings
  • Find Content Archives Section
  • Choose “Select one of the following: Display post excerpts”
  • Choose the Featured Image, Image size, and Image alignment, as you prefer

Next View Your Blog Page

wordpress post formats with excerpts

You will see that the quotes are truncated, and the links are not only truncated, but simply not there. Ideally, you would want the longer post formats to display an excerpt, but the quotes and links to display the full content.

Add Some Code

Add the following code to your child theme functions.php; this will only work for Genesis themes. This will add full content for those post formats listed in the array, so that you will have full content on quotes and links, as in the first image.

<?php 
// Remove line above before using.

// 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( array( 'aside', 'link', 'quote', 'video' ) ) && ( 'excerpts' === genesis_get_option( 'content_archive' ) ) ) {

		$excerpt = the_content();
		return $excerpt;

	} else {

		return $excerpt;
	}
}

Now you see that the quotes show the full quote, even when it’s a longer one. And the actual link can be clicked right from the blog or archive page. You will probably want to include the full content for aside and video post formats, as well, but you can add as many or as few, as you need for your blog.

Remember that these are all the possible formats to add to the array in the code above.

array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' )

Another Method to Have Full Content for Only Some Post Formats

There is another method to have some posts with full content and some to be limited in length. For this method, you will need to edit your Content Archives settings in Genesis > Theme Settings again.

Set Your Content Archives to Full Content

  • Go to Genesis > Theme Settings
  • Find Content Archives Section
  • Choose “Select one of the following: Display post content”
  • Limit content to 0 characters <- Very important
  • Choose the Featured Image, Image size, and Image alignment, as you prefer

Now all of the posts on the blog and archive pages will show the full content.

Use the More Link to Limit the Content on Some Post Formats

For the post formats that you want to limit in length, such as your longer standard posts, you can limit the length as you edit, with the More Tag or the Read More.

  • Edit the long posts.
  • In the editor, choose where to cut off the post.
  • Insert the “More Tag” or “Read More”. You can choose it from the Visual Editor.
post format content with more tag

How are you using post formats? Tell us in the comments.

Share this post:

TwitterFacebookPinterestLinkedInEmail

You can have a beautiful, hardworking website for your small business.

Tell me about your website project for a personalized solution!

Contact Marcy »

___

Do you need website tips?

Sign up to get easy-to-use WordPress tutorials, Genesis theme customizations, and other helpful tips for your small business website.

Your email address will be used to send you blog posts. Privacy Policy

___

About Marcy

Marcy Diaz

I'm Marcy Díaz, the owner of Amethyst Website Design, a small business located in Phoenix, Arizona (in Ahwatukee Foothills). I help people, like you, grow your business with an affordable WordPress website design. Sign up for my blog and website tips that help you manage your own website.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

 

Footer

Meet Marcy

Marcy Diaz, Amethyst Website DesignAmethyst Website Design is a small business owned by Marcy Díaz. I help people, like you, with your website by creating an affordable WordPress website using Genesis themes to fit your business and budget. I especially love working with new and small business owners, and can help you with the online part of your business.
Read More »

Let’s Connect!

  • Facebook
  • Twitter
  • Pinterest
  • Linked In
  • GitHub

Contact Info

Amethyst Website Design
PO Box 94782
Phoenix AZ 85070

Phone: 602.759.0501
Email:

Contact Form
Located in Ahwatukee Foothills

member of local first az
  • Sitemap
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy

© 2021   Amethyst Website Design   ◆   Log in

Using WordPress and the Genesis Framework

This site uses cookies for the best browsing experience. By continuing to use this site, you accept our Cookie Policy »OK, got it!