paragrafo e quebra de linha no excerpt
-
olá galera!
estou fazendo um site fiz uma configuração para o excerpt mais o mesmo não quebra linha nem nada do genero, já tentei de tudo e nada até agora.
segue o codigo se puderem me ajudar a resolver//Add Excerpts to Pages class Excerpt { // Default length (by WordPress) public static $length = 30; // So you can call: my_excerpt(‘short’); public static $types = array( ‘medium’ => 50, ‘medio’ => 70, ‘short’ => 85, ‘regular’ => 90, ‘long’ => 100 ); public static function length($new_length = 30) { Excerpt::$length = $new_length; add_filter(‘excerpt_length’, ‘Excerpt::new_length’); Excerpt::output(); } public static function new_length() { if( isset(Excerpt::$types[Excerpt::$length]) ) return Excerpt::$types[Excerpt::$length]; else return Excerpt::$length; } public static function output() { the_excerpt(); } } function new_excerpt_more( $more ) { return ‘…’; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); function my_excerpt($length = 55) { Excerpt::length($length); }
Visualizando 3 respostas - 1 até 3 (de um total de 3)
Visualizando 3 respostas - 1 até 3 (de um total de 3)
- O tópico ‘paragrafo e quebra de linha no excerpt’ está fechado para novas respostas.