LeonardoMiranda 0 Denunciar post Postado Abril 4, 2014 Olá Srs. Estou com problema onde o meu template faz resumo automaticamente dos posts e adiciona "...". No caso eu quero que não faça isso, mostre o post completo. Pesquisando no Google achei algumas coisas de The Content e Except alguma coisa. Achei no arquivo functions.php entre muitas coisas: ///////////////////////////////////// // Add Content Limit ///////////////////////////////////// if ( !function_exists( 'excerpt' ) ) { function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`\[[^\]]*\]`','',$excerpt); return $excerpt; } } if ( !function_exists( 'content' ) ) { function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/\[.+\]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } } No caso cheguei a deletar todas essas linhas mas ai aconteceu que meu blog não apareceu foi é nada. Compartilhar este post Link para o post Compartilhar em outros sites
LeonardoMiranda 0 Denunciar post Postado Abril 4, 2014 Galera, olhando no arquivo index.php achei isso no código: <div id="middle-text"> <h3><?php $category = get_the_category(); echo $category[0]->cat_name; ?></h3> <h2><?php the_title(); ?></h2> <p><?php echo excerpt(22); ?></p> </div><!--middle-text--> Tentei alterar esse 22 para 20000 mas não aconteceu nada. Compartilhar este post Link para o post Compartilhar em outros sites
WSP8521 0 Denunciar post Postado Abril 5, 2014 o excerpt é contato em palavras, tu deve diminuir e nao aumentar; <?php echo excerpt(22); ?> Compartilhar este post Link para o post Compartilhar em outros sites
LeonardoMiranda 0 Denunciar post Postado Abril 7, 2014 o excerpt é contato em palavras, tu deve diminuir e nao aumentar; <?php echo excerpt(22); ?> Deixo assim então: <?php echo excerpt(); ?> No caso olha como está mostrando: http://tinypic.com/view.php?pic=1nxrn4&s=8#.Uz9Z2twbR2Y Help Compartilhar este post Link para o post Compartilhar em outros sites