Reply To: Portfolio excerpts

#21095
m01
Participant

Hi Daniel,
Thank you for your help! That brought me onto the right track. I turned out I needed to change the following bit of code in default-hooks.php:


function enlightenment_project_teaser_actions() {
	if( current_theme_supports( 'jetpack-portfolio' ) && class_exists( 'Jetpack' ) && in_array( 'custom-content-types', Jetpack::get_active_modules() ) ) {
		if( ( is_post_type_archive( 'jetpack-portfolio' ) || is_tax( 'jetpack-portfolio-type' ) || is_tax( 'jetpack-portfolio-tag' ) ) && current_theme_supports( 'enlightenment-grid-loop' ) && ! enlightenment_is_lead_post() ) {
			enightenment_clear_entry_hooks();
			add_action( 'enlightenment_entry_header', 'the_post_thumbnail' );
			add_action( 'enlightenment_entry_header', 'the_title', 10, 2 );
			add_action( 'enlightenment_entry_content', 'the_excerpt' );/// <<< new
		}
	}
}

I suspect adding the hook like you suggested doesn’t work because of the enlightenment_clear_entry_hooks() call in that function, right?