Remove post excerpt on homepage for custom post type
-
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!
- The topic ‘Remove post excerpt on homepage for custom post type’ is closed to new replies.