I'm developing a website that has a blog section as well as a "free monthly download" section set up as a custom post type. On the home page I'm displaying excerpts with "read more" links for both the most recent blog post and the most recent monthly download (these are in separate loops).
The read more link is generated automatically by this code in my functions.php file:
function excerpt_read_more_link($output) {
global $post;
return $output . '<a class="more-link" href="'. get_permalink($post->ID) . '">Read more</a>';
}
add_filter('the_excerpt', 'excerpt_read_more_link');
This is working fine, but I'd like "read more" for the custom post type excerpt to read "Get it now".
Any suggestions for how to have different "read more" text for the blog post excerpts and the custom post type excerpts?
Thanks in advance.