Issue with excerpt and "Read more" permalink after upgrading to WP 3.8
-
Hi.
I’ve just upgraded to WP 3.8 on my local installation and I noticed an issue with the excerpt. I had a “Read full post” link right after the excerpt, made via the permalink, like so:
<?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s - Read full post' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">Read full post »</a>
This was working fine up until version 3.7.1.
Now the permalink to the article isn’t working, unless I move it ABOVE the excerpt, like so:<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s - Read full post' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">Read full post »</a> <?php the_excerpt(); ?>
.
I also tried to get the read more working by adding it to the funcions.php file, as suggested in the codex:
function new_excerpt_more( $more ) { return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">Read More</a>'; } add_filter( 'excerpt_more', 'new_excerpt_more' );
but this also failed (i.e. the Read more links appears but it doesn’t link to the specific article), which makes me think the problem is related to the changes to the core files made with version 3.8.
This is quite an issue for blogs considering it concerns the front page, so I hope it will be addressed asap. I won’t upgrade my live websites until it’s sorted.
Thanks,
Oriana
- The topic ‘Issue with excerpt and "Read more" permalink after upgrading to WP 3.8’ is closed to new replies.