L
L
ligisayan2016-02-11 14:09:58
WordPress
ligisayan, 2016-02-11 14:09:58

Why is the read next button not showing in wordpress theme?

Hello! I have a test site on wordpress with the bolid theme installed . I don’t know why, but the read more buttons are not displayed, as in the picture - (you can see the link )
in the functions.php file there are such functions:

// Old Shorten Excerpt text for use in theme
function vergo_excerpt($text, $chars = 1620) {
  $text = $text." ";
  $text = substr($text,0,$chars);
  $text = substr($text,0,strrpos($text,' '));
  $text = $text."...";
  return $text;
}

function trim_excerpt($text) {
  return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'trim_excerpt');
function insert_prettyPhoto_rel($content) {
  $pattern = '/<a(.*?)href="(.*?).(bmp|gif|jpeg|jpg|png)"(.*?)>/i';
  	$replacement = '<a$1href="$2.$3" rel=\'prettyPhoto\'$4>';
  $content = preg_replace( $pattern, $replacement, $content );
  return $content;
}
add_filter( 'the_content', 'insert_prettyPhoto_rel' );

and the output itself in the archivepost.php file: I tried to replace get_the_excerpt() with get_the_content() and the_content() , playing with the number of characters before output - all in vain: it cuts either by ellipsis, or by ... or the text before read more, and the button itself does not display - what do you advise?
echo vergo_excerpt( get_the_excerpt(), '260');

919934d169aa4eed804b467800a44df6.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Prikazchikov, 2016-02-11
@alexprik07

Do you have a gap in the article?

L
LittleFatNinja, 2016-02-11
@LittleFatNinja

maybe there is nothing more to read?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question