0

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!

4
Contributors
8
Replies
10
Views
4 Years
Discussion Span
Last Post by picassokaka
0

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

0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.