Different read-more link for each custom post type [closed]

No idea if this makes a difference, and don’t know about the Genesis either but give it a shot

function excerpt_read_more_link($output) {
global $post;

if ( 'speaker' == get_post_type() ) { $output .= '<p><a class="speaker-more-link" href="'. get_permalink() . '">View Speaker Profile</a></p>'; }
elseif ( 'resources' == get_post_type() ) { $output .= '<p><a class="speaker-more-link" href="'. get_permalink() . '">More Resource Content</a></p>'; }
else { $output . '<a class="more-link" href="'. get_permalink() . '">Read more</a>'; }

return $output;

}
add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

edit: and for the record, I don’t know, for me the if/else logic seems solid. Not sure though, haven’t really used any custom post types and it’s really late and I’m half asleep 🙂

edit2: updated code.