/i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ $first_img = ""; // Default image path } return $first_img; } ?> Alisia :: Comunicação e Design
Visões e Pensamentos.
Blog

Ligue
(19) 9 8118.4704
ou mande um e-mail para
edson@alisia.com.br

found_posts; $total_paginas = ceil($total_posts/$lpp); function wpc__excerpt_more($more) { return ' ...'; } add_filter('excerpt_more', 'wpc__excerpt_more'); while (have_posts()) : the_post(); // get_image() : retorna a url da primeira imagem no post (função no inicio da pagina) // the_title() : exibe o título // the_excerpt() : exibe o resumo // the_content() : exibe o conteudo completo // the_ID() : exibe o ID do post // the_permalink() : exibe o link da a postagem (wp) if(isset($_GET['p'])){ echo "

"; the_title(); echo "

"; the_content(); echo "

Retornar

"; } else { echo "

"; the_title(); echo "

"; echo ""; echo ""; echo "
"; echo ""; echo "
"; the_excerpt(); echo "

Continue lendo

"; } endwhile; ?>
<< < 3){ ?> 01 ... = $total_paginas-2 && $i >= $total_paginas-4) || ($pagina_atual < 3 && $count <= 5) || ($i > ($pagina_atual - 3) && $i < ($pagina_atual + 3)) ){ $_pl[] = $i; $i2 = $i < 10 ? "0{$i}" : $i; $_at = $i*1 == $pagina_atual*1 ? "p_atual" : ""; ?> ... > >>