It could be that your theme is using a different hook, which is causing it to not display correctly.
If that is the case, you’ll need to look in your theme files for whichever file displays the archive pages. You can then look to see whatever hook is being used to display the content for each portfolio item. Look for something that includes genesis_do_post_image
. You’ll need to add some code to that file (or functions.php).
Something like this:
// Add the video to whatever hook your theme is using.
add_action( 'whatever_the_hook_your_theme_is_using', 'gfv_video_image', 0 );
// Remove the featured image from portfolio items that are using videos.
add_action( 'gfv_remove_post_image', 'cyb_remove_post_image' );
function cyb_remove_post_image(){
if ( 'portfolio' == get_post_type() ){
remove_action( 'whatever_the_hook_your_theme_is_using', 'genesis_do_post_image' );
}
}
// Add back the featured image for portfolio items that are not using videos.
add_action( 'gfv_add_post_image', 'cyb_add_post_image' );
function cyb_add_post_image(){
add_action( 'whatever_the_hook_your_theme_is_using', 'genesis_do_post_image' );
}
You might need to play around with that code a bit, but it should point you in the right direction.