Hello,
I have a blog and I added some tags to the blog posts but there is no “read more” in the end of the tag view of excerpt text.
How can I add the read more text (I tried to add it in the end of the post page, where there ise the excerpt line but then it shows it in double in the homepage).
My homepage: http://bit.ly/2lFbMzV
The blog tag view, where I want to add the “read more” in the end of the excerpt text like it is in the homepage: http://bit.ly/2kWipfx
Thanks!
Hey pimroll,
If I understand correctly you wish to remove the automatic […] and use the Read More tag from the builder.
Please add following code to Functions.php file in Appearance > Editor
function change_excerpt( $text )
{
$pos = strrpos( $text, '[');
if ($pos === false)
{
return $text;
}
return rtrim (substr($text, 0, $pos) );
}
add_filter('get_the_excerpt', 'change_excerpt');
Best regards,
Mike