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.
Related Posts:
- How to remove “read more” link from custom post type excerpt
- Genesis Child and Custom Post Type
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- “More” span making trouble
- Edit/Customize the Single Page of a Genesis Sample Child Theme
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- Custom Blog Post Listing in Genesis Sample Child Theme
- Add a tag to a custom post type
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Custom Post Type Loop throws 500 error when used in widget
- Problem with WordPress query on page using custom fields
- Custom post types: change “read more” text
- help
- More quicktag driving me nuts
- Move Genesis Single Page/Single Post Title
- Add an Outside Wrapper to my Header and Make it Full Width
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Query to get child pages of current page and display it in action hook
- Can’t replace the default sidebar with a custom sidebar on Custom Post Type in Genesis
- Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis
- Media is not showing on post page
- Custom Pagination based on Custom Post Type
- Menu disappears with custom post type link
- WordPress URL Problems and Layout
- How to display custom message for (Genesis) featured posts if no posts
- Query by post title
- Marking future dated post as published
- Custom Taxonomy as checkbox or dropdown
- Assign a Custom Role to a Custom Post?
- Implementing “Video of the Day” Feature?
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- How to quickly switch custom post type singular template?
- Post metadata deletes itself
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Get latest 4 post on a custom post filtered by category
- CSS for Custom Post Types
- How can you use custom types/taxonomies? [closed]
- Get child terms of current term of the current post
- Remove Post Page “View Post” Link
- Turn query string to sub page
- WordPress Template Hierarchy
- Custom post type custom taxonomy archive page name
- Unable to retrieve any posts of CPT in wp-admin
- Custom Page that comes with preloaded content for the user
- Automatically update custom field in all posts of a custom post type
- Custom post type not showing in admin menu
- Custom post type templating problem
- How to set up a post word limit for a custom post type
- Which post does a taxonomy term belongs to?
- Custom Post Type – No Results Found
- Add custom field to Posts and sort by it
- Fixed values for same post translations
- How to give all CPT a folder automatically based on their slug
- WordPress custom taxonomy template not working
- Can a shortcode included in post content add styles to the ?
- Category.php template for custom posts
- Custom posts type for individual pages?
- post-per-page and offset not working
- Create field of Custom Post Types
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- How to retrieve all wordpress posts (specific type) inside a function in php?
- ACF for custom post type archive pages: which hook to use?
- Pagination hitting 404 page on /page/4
- Custom Meta Box returns no HTML
- Post Type Support Array Not Working
- Save Metabox Custom Field Value
- Multiple Loops on a Page Without Duplicates
- Custom Meta Box with variable number of fields
- Specifying a template for custom post type pages
- build Custom post type and make it child for Posts and put it as comment
- Creating archive like functionality through birectional relationships
- Display another page / custom post type as home page
- Action on Custom Post publish
- Post template not applying on theme (potentially rendering as Page template)
- Disable button after one click per user per post
- How to return/export only data showing on screen in custom post type view all screen
- How can I add image sizes for a specific custom post type?
- Get all posts for custom taxonomy term
- $_POST from a Meta Box
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- How to store additional data that is related to core data
- How to get a custom post type archive paged when using a custom field for post sorting?
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Group based routing and administration
- Why does my plugin require a permalink reset after a new installation?
- Limit Number of Custom Post Type Dashboard
- Reference field of users in custom post type
- Query events post type after current date and timezone
- Avoid another meta box in my custom post type
- This wp_query will not return any posts and only seems to work with post_status inherit?
- Using piklist meta box, strange behavior
- Multiple post types or single post type with category taxonomy?
- Paginating custom query on category template
- New WP_Query not isolating custom post types on front-page template
- Get a list of categories ids
- Pagination not working on homepage
- A to Z list for custom post types
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Assign a tag to custom post type using a query
- Categorizing Custom Posts in Bulk Based on Title