1.11M Members

Remove excerpt for custom post type on home page

 
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!

 
0
 

Haven't heard Genesis mentioned here yet. Did you try their forums?

 
0
 

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

 
0
 

Sorry - NOT supported.

 
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.

 
0
 

Thank you! I got it!

 
0
 

Great. Please mark as solved.

 
-1
 

Thanks share this mate

Question Answered as of 1 Year Ago by blocblue, pritaeas and picassokaka
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: