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() … Read more

How to get sort content by page id?

I believe your best solution will be to setup postdata and the making use of the the_content() template tag $post = get_page_by_title( ‘About us’ ); setup_postdata( $post ); ?> <p> <?php the_content(); ?> </p> <?php wp_reset_postdata(); ?>

How to customize ‘read more’

This only makes the read more link a button. add_filter( ‘excerpt_more’, ‘wpsites_read_more_link’ ); function wpsites_read_more_link( $more ) { return ‘… <a class=”more-link button” href=”‘ . get_permalink() . ‘”>Continue Reading</a>’; } Replace the button class with your themes button class.

Put teaser content, more-link and full content in different divs if existing… Possible?

Found a solution which is working. Splitting the array like above just gives you the plain text so shortcodes wont work. this works: global $post; $content = get_extended( $post->post_content ); //get the_content $excerpt = $content[‘main’]; //get the teaser part before more tag $main_content = apply_filters(‘the_content’, $content[‘extended’]); //get part after more tag echo $excerpt; //post teaser … Read more

Read More link, not visible on home page

I just figured it out about five minutes after I posted this question. It was stupidly simple, just as I figured. There is a ‘format’ window on the post edit page, and I hit the ‘link’ option, and my read more links appeared. No coding necessary, which I think renders this question inappropriate.

Read More in the actual excerpt

Your question is not entirely clear, but it looks like you simply want to remove the continue reading button from the excerpt. You have already found the offending code. Nothing stops you from modifying it in this way: function new_excerpt_more($more) { global $post; return ”; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); To do this properly you must not … Read more