I have registered new custom post types and used this filter to add to my blog homepage

add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
    if ( is_home() && $query->is_main_query())
        $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) );
    return $query;

Now that it is showing on my homepage - I want to remove the excerpt so that only the featured images show. I am using the Genesis framework and the child theme is configured to show featured images and the post excerpts - however I would like to remove the excerpt for only the custom post types I have created.
Any help is appreciated!

Recommended Answers

All 8 Replies

Yes - but custom post types are something supported.
Is there a way to remove the excerpt no matter what theme is used?

Sorry - NOT supported.

My goal is to only show the featured image with no content, excerpt, title - anything. Is that possible?

Just remove the_excerpt or the_content tag from the loop outputting the custom posts in the template.

Thank you! I got it!

Great. Please mark as solved.

Thanks share this mate

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.