I have a WordPress website I just over from another web developer, there is the following excerpts on the blog articles : [...]
How can I perhaps add a functionality for these brackets and dots to link to blog articles?
use this code:
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. get_permalink($post->ID) . '"> [...]</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.