Mostrar publicações completas na página inicial

  • Autor Autor Wigao
  • Data de início Data de início
Tradução em andamento: em alguns minutos este tópico estará em português. Por enquanto, o conteúdo está no original em espanhol. Ver original
Wigao

Wigao

1
Pi
SEO
Verificación en dos pasos activada
Suscripción a IA
Que tal amigos, tengo el siguiente código php en mi index:

PHP:
<?php get_header(); ?>
	
	<div id="content">
	
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<div class="post" id="post-<?php the_ID(); ?>">
			
<div class="authorpic" style="float: right; margin-left: 10px;"><a href="/author/<?php the_author_meta('user_login'); ?>" rel="nofollow" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" /><?php echo get_avatar( get_the_author_email(), '60' ); ?></a></div>
                
            <h2><a title="<?php _e('Permanent Link to',woothemes); ?> 


<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
           	<p class="meta">
           		<span class="label"><?php the_category(','); ?></span><!-- label -->
           		<?php the_time('j F Y'); ?> | <?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?>
           	</p>
           		
           		<?php echo woo_get_embed('embed','550','309'); ?>
				
				<div class="entry">
					 <?php if (function_exists('the_excerpt_reloaded')) { ?>

        <?php the_excerpt_reloaded(110, '<img><code><p><a><ul><ol><li><br /><blockquote><em><strong><div>', 'content', FALSE, '', FALSE, 1, TRUE); ?>

        <?php } else { ?>

        <?php the_excerpt(); ?>

        <?php } ?><p><a href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>
				</div><!--entry-->	
                
            <p class="tags"><?php the_tags(__('Tagged in ', woothemes), ', ', ''); ?> </p>   				
				
			</div><!--post-->		
		
		<?php endwhile; endif; ?>

		<div id="navigation">
			<div id="prev"><?php next_posts_link(__('Older Posts &raquo;',woothemes)) ?></div>
			<div id="next"><?php previous_posts_link(__('&laquo; Newer Posts',woothemes)) ?></div>
		</div>				
		
		<div class="fix"></div>
	
	</div><!--content-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Quiero saber que parte debo modificar para que no me aparezca "Continua leyendo la entrada" en el index de mi blog, al contrario me aparezcan los posts completos. Desde ya muchas gracias.
 
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
Aver, proba borrando

PHP:
<?php } ?><p><a href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>

Y despues decime que pasó. Guardate un respaldo por las dudas.
 
Cambia ésto:
Inserir CODE, HTML ou PHP:
    <?php the_excerpt(); ?>

        <?php } ?><p><a href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>

Por ésto:

Inserir CODE, HTML ou PHP:
<php? the_content(); ?>

Se feliz! 😀

Edito: Si te falla, prueba a cambiar el "excerpt" por "content" y luego solo borra:

Inserir CODE, HTML ou PHP:
<p><a href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>
 
PHP:
<?php get_header(); ?>
    
    <div id="content">
    
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

            <div class="post" id="post-<?php the_ID(); ?>">
            
<div class="authorpic" style="float: right; margin-left: 10px;"><a href="/author/<?php the_author_meta('user_login'); ?>" rel="nofollow" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" /><?php echo get_avatar( get_the_author_email(), '60' ); ?></a></div>
                
            <h2><a title="<?php _e('Permanent Link to',woothemes); ?> 


<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
               <p class="meta">
                   <span class="label"><?php the_category(','); ?></span><!-- label -->
                   <?php the_time('j F Y'); ?> | <?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?>
               </p>
                   
                   <?php echo woo_get_embed('embed','550','309'); ?>
                
                <div class="entry">
                   <?php the_content(); ?>
                </div><!--entry-->    
                
            <p class="tags"><?php the_tags(__('Tagged in ', woothemes), ', ', ''); ?> </p>                   
                
            </div><!--post-->        
        
        <?php endwhile; endif; ?>

        <div id="navigation">
            <div id="prev"><?php next_posts_link(__('Older Posts &raquo;',woothemes)) ?></div>
            <div id="next"><?php previous_posts_link(__('&laquo; Newer Posts',woothemes)) ?></div>
        </div>                
        
        <div class="fix"></div>
    
    </div><!--content-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>

y en caso de que tengas activado el plugin the excerpt reloaded lo puedes desactivar
 
Cambia ésto:
Inserir CODE, HTML ou PHP:
    <?php the_excerpt(); ?>

        <?php } ?><p><a rel="nofollow" href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>

Por ésto:

Inserir CODE, HTML ou PHP:
<php? the_content(); ?>

Se feliz! 😀

Edito: Si te falla, prueba a cambiar el "excerpt" por "content" y luego solo borra:

Inserir CODE, HTML ou PHP:
<p><a rel="nofollow" href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>

Creo que esto te servirá, me parece que le pifié muy zarpado. Eso es por no leer xD
 
Cambias
PHP:
<?php the_excerpt(); ?>

por:
PHP:
<?php the_content(); ?>

eliminas
PHP:
<p><a href="<?php the_permalink() ?>">Continúa leyendo la entrada... &raquo;</a></p>
 
Voltar
Topo