Title: Respostas de pedroca | WordPress.org Brasil

---

# pedroca

  [  ](https://br.wordpress.org/support/users/pedroca/)

 *   [Perfil](https://br.wordpress.org/support/users/pedroca/)
 *   [Tópicos iniciados](https://br.wordpress.org/support/users/pedroca/topics/)
 *   [Respostas criadas](https://br.wordpress.org/support/users/pedroca/replies/)
 *   [Tópicos respondidos](https://br.wordpress.org/support/users/pedroca/replied-to/)
 *   [Interações](https://br.wordpress.org/support/users/pedroca/engagements/)
 *   [Favoritos](https://br.wordpress.org/support/users/pedroca/favorites/)

 Pesquisar respostas:

## Respostas no Fórum

Visualizando 2 respostas - 1 até 2 (de um total de 2)

 *   Fórum: [Temas](https://br.wordpress.org/support/forum/temas-e-modelos/)
    Em
   resposta a: [Primeiro post diferente dos demais](https://br.wordpress.org/support/topic/primeiro-post-diferente-dos-demais/)
 *  Criador do tópico [pedroca](https://br.wordpress.org/support/users/pedroca/)
 * (@pedroca)
 * [13 anos, 5 meses atrás](https://br.wordpress.org/support/topic/primeiro-post-diferente-dos-demais/#post-29331)
 * valeu demais, Eduardo!
 *   Fórum: [Ajustando o WordPress](https://br.wordpress.org/support/forum/resolucao-de-problemas/)
   
   Em resposta a: [Post inteiro na home](https://br.wordpress.org/support/topic/post-inteiro-na-home/)
 *  Criador do tópico [pedroca](https://br.wordpress.org/support/users/pedroca/)
 * (@pedroca)
 * [16 anos, 5 meses atrás](https://br.wordpress.org/support/topic/post-inteiro-na-home/#post-4175)
 * olha só, o código da index.php é esse:
 *     ```
       <?php get_header(); ?>
   
       			<div id="content">
       				<?php
       					include(TEMPLATEPATH . "/wp-loop.php");
       				?>
   
       			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
   
       			</div>
   
       			<div id="sidebar">
       				<?php
       					get_sidebar();
       				?>
       			</div>
   
       <?php get_footer(); ?>
       ```
   
 * e tem também o wp-loop.php que tem o seguinte:
 *     ```
       <?php if (have_posts()) : ?>
   
       		<?php while (have_posts()) : the_post(); ?>
   
       				<div class="post">
       						<h2><?php if (is_page() || is_single()) { the_title(); ?> <?php } else { ?> <a href="<?php the_permalink() ?>" rel="bookmark"
       						title="Permanent Link to <?php the_title(); ?>"><?php
       						the_title(); ?></a> <?php } ?></h2>
   
       						<div class="post-info">
       							<?php if(!is_page()) : ?>
                                   <span class="setting user"><?php echo the_author() ? '' : 'Unknown'; ?></span>
       							<span class="setting datetime"><?php the_time('F d, Y'); ?></span>
                               	<span class="setting filedlink"><?php the_category(', ') ?></span>
                             		<?php comments_popup_link('Deixar um coment&aacute;rio', 'Deixar um coment&aacute;rio (1)', 'Deixar um coment&aacute;rio (%)', 'setting commentslink'); ?>
                             		</span>
                                   <?php edit_post_link($link = 'Editar', $before = '<span class="setting editlink">', $after = '</span>'); ?>
                                   <p><?php the_tags('Tags: ', ', ') ?></p>
       							<?php endif; ?>
       						</div>
   
       					<div class="post-entry">
   
       						<?php if(is_page() || is_single()) { ?>
       						<?php the_content(); ?>
                               <?php } else { ?>
                               <?php the_excerpt_reloaded(100, '<h3>,<h4>,<a>,<img>,<p>,<ul>,<ol>,<li>', 'content', TRUE, 'Continue Reading', FALSE, 2); ?>
   
                               <?php } ?>
       					</div>
                           <div class="post-meta">
   
       						<?php if(is_single()) : ?>
       							<p>You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
   
       						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
       							// Both Comments and Pings are open
       						?>
       							You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
   
       						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
       							// Only Pings are Open
       						?>
       							Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
   
       						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
       							// Comments are open, Pings are not
       						?>
       							You can skip to the end and leave a response. Pinging is currently not allowed.
   
       						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
       							// Neither Comments, nor Pings are open
       						?>
       							Both comments and pings are currently closed.
   
       						<?php } ?>
       						</p>
       						<?php endif; ?>
       					</div>
   
       				</div>
   
       		<?php endwhile; ?>
   
       	<?php else : ?>
   
       				<div class="post">
       					<div class="post-entry">
       						<h2>Not Found</h2>
       						<p class="center">Sorry, but you are looking for something that isn't here.</p>
       					</div>
       				</div>
   
       	<?php endif; ?>
       ```
   
 * e aí?

Visualizando 2 respostas - 1 até 2 (de um total de 2)