Mostrar posts en lista sin descripción en la página principal

  • Autor Autor housedir
  • Fecha de inicio Fecha de inicio
housedir

housedir

Kappa
Programador
Verificado
Verificación en dos pasos activada
Verificado por Whatsapp
¡Ha verificado su Paypal!
buenas, quisiera saber como hacer para que en la pagina principal de mi web salgan los posts en forma de lista y sin descripcion, osea solo el titulo y el enlace hacia el post, he visto varias paginas por hay que estan asi pero no se si son un theme o un plugin, quiero hacer mi pagina mas liviana
 
podrias editar el theme y solo dejar the_title(); the_content o the_excerp los sacas. tmb podes sacar la fecha y eso. no se que theme usas, pero es facil hacerlo. de ultima coloca el codigo del file: index.php en el post y te ayudamos
 
Es cuestión de quitarle el the_content() y editar un poco el css, aunque creo a ver visto un theme ya hecho, pero no recuerdo si era de pago
 
Última edición:
Insertar CODE, HTML o PHP:
<?php get_header(); ?>
	

		
		<!-- begin colLeft -->
		<div id="colLeft">
		<!-- archive-title -->				
						<?php if(is_month()) { ?>
						<div id="archive-title">
						Browsing all articles from <strong><?php the_time('F, Y') ?></strong>
						</div>
						<?php } ?>
						<?php if(is_category()) { ?>
						<div id="archive-title">
						Browsing all articles in <strong><?php $current_category = single_cat_title("", true); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_tag()) { ?>
						<div id="archive-title">
						Browsing all articles tagged with <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_author()) { ?>
						<div id="archive-title">
						Browsing all articles by <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
					<!-- /archive-title -->
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<!-- begin post -->
		<div class="blogPost clearfix">
			<div class="metaLeft">
				<div class="month"><?php the_time('M') ?></div>
				<div class="day"><?php the_time('j') ?></div>
				<div class="comments"><?php comments_popup_link('0', '1', '%'); ?></div>
			</div>
			<div class="postRight">
				<div class="titBullet"></div>
				<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
				<div class="metaRight">
				<img src="<?php bloginfo('template_url'); ?>/images/ico_user.png" alt="Author" /> <?php the_author_link(); ?>&nbsp;&nbsp;&nbsp; <img src="<?php bloginfo('template_url'); ?>/images/ico_folder.png" alt="Category" /> <?php the_category(', ') ?>	&nbsp;&nbsp;&nbsp; <img src="<?php bloginfo('template_url'); ?>/images/ico_tag.png" alt="Tags" /> <?php the_tags(' ', ', ', ''); ?></div>
				<?php the_content(__('read more')); ?> 
			</div>
		</div>
		<!-- end post -->
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('Older') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer') ?></div>
		</div>

	<?php else : ?>

		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>
		</div>
		<!-- end colLeft -->

<!-- begin colRight -->
		<div id="colRight">	
			<?php get_sidebar(); ?>	
			</div>
<!-- end colRight -->

<?php get_footer(); ?>
 
opcion 1:
PHP:
<?php get_header(); ?>
	

		
		<!-- begin colLeft -->
		<div id="colLeft">
		<!-- archive-title -->				
						<?php if(is_month()) { ?>
						<div id="archive-title">
						Browsing all articles from <strong><?php the_time('F, Y') ?></strong>
						</div>
						<?php } ?>
						<?php if(is_category()) { ?>
						<div id="archive-title">
						Browsing all articles in <strong><?php $current_category = single_cat_title("", true); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_tag()) { ?>
						<div id="archive-title">
						Browsing all articles tagged with <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_author()) { ?>
						<div id="archive-title">
						Browsing all articles by <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
					<!-- /archive-title -->
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<!-- begin post -->
		<div class="blogPost clearfix">
			<div class="metaLeft">
				<div class="month"><?php the_time('M') ?></div>
				<div class="day"><?php the_time('j') ?></div>
				<div class="comments"><?php comments_popup_link('0', '1', '%'); ?></div>
			</div>
			<div class="postRight">
				<div class="titBullet"></div>
				<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
			</div>
		</div>
		<!-- end post -->
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('Older') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer') ?></div>
		</div>

	<?php else : ?>

		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>
		</div>
		<!-- end colLeft -->

<!-- begin colRight -->
		<div id="colRight">	
			<?php get_sidebar(); ?>	
			</div>
<!-- end colRight -->

<?php get_footer(); ?>

opcion 2:
PHP:
<?php get_header(); ?>
	

		
		<!-- begin colLeft -->
		<div id="colLeft">
		<!-- archive-title -->				
						<?php if(is_month()) { ?>
						<div id="archive-title">
						Browsing all articles from <strong><?php the_time('F, Y') ?></strong>
						</div>
						<?php } ?>
						<?php if(is_category()) { ?>
						<div id="archive-title">
						Browsing all articles in <strong><?php $current_category = single_cat_title("", true); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_tag()) { ?>
						<div id="archive-title">
						Browsing all articles tagged with <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_author()) { ?>
						<div id="archive-title">
						Browsing all articles by <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
					<!-- /archive-title -->
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<!-- begin post -->
		<div class="blogPost clearfix">
			<div class="postRight">
				<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
			</div>
		</div>
		<!-- end post -->
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('Older') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer') ?></div>
		</div>

	<?php else : ?>

		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>
		</div>
		<!-- end colLeft -->

<!-- begin colRight -->
		<div id="colRight">	
			<?php get_sidebar(); ?>	
			</div>
<!-- end colRight -->

<?php get_footer(); ?>

avisame cualkier cosa. de ultima si se ve raro haceme una captura y veo ke puede pasar.
 
opcion 1:
PHP:
<?php get_header(); ?>
	

		
		<!-- begin colLeft -->
		<div id="colLeft">
		<!-- archive-title -->				
						<?php if(is_month()) { ?>
						<div id="archive-title">
						Browsing all articles from <strong><?php the_time('F, Y') ?></strong>
						</div>
						<?php } ?>
						<?php if(is_category()) { ?>
						<div id="archive-title">
						Browsing all articles in <strong><?php $current_category = single_cat_title("", true); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_tag()) { ?>
						<div id="archive-title">
						Browsing all articles tagged with <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_author()) { ?>
						<div id="archive-title">
						Browsing all articles by <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
					<!-- /archive-title -->
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<!-- begin post -->
		<div class="blogPost clearfix">
			<div class="metaLeft">
				<div class="month"><?php the_time('M') ?></div>
				<div class="day"><?php the_time('j') ?></div>
				<div class="comments"><?php comments_popup_link('0', '1', '%'); ?></div>
			</div>
			<div class="postRight">
				<div class="titBullet"></div>
				<h1><a rel="nofollow" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
			</div>
		</div>
		<!-- end post -->
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('Older') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer') ?></div>
		</div>

	<?php else : ?>

		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>
		</div>
		<!-- end colLeft -->

<!-- begin colRight -->
		<div id="colRight">	
			<?php get_sidebar(); ?>	
			</div>
<!-- end colRight -->

<?php get_footer(); ?>

opcion 2:
PHP:
<?php get_header(); ?>
	

		
		<!-- begin colLeft -->
		<div id="colLeft">
		<!-- archive-title -->				
						<?php if(is_month()) { ?>
						<div id="archive-title">
						Browsing all articles from <strong><?php the_time('F, Y') ?></strong>
						</div>
						<?php } ?>
						<?php if(is_category()) { ?>
						<div id="archive-title">
						Browsing all articles in <strong><?php $current_category = single_cat_title("", true); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_tag()) { ?>
						<div id="archive-title">
						Browsing all articles tagged with <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
						<?php if(is_author()) { ?>
						<div id="archive-title">
						Browsing all articles by <strong><?php wp_title('',true,''); ?></strong>
						</div>
						<?php } ?>
					<!-- /archive-title -->
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<!-- begin post -->
		<div class="blogPost clearfix">
			<div class="postRight">
				<h1><a rel="nofollow" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
			</div>
		</div>
		<!-- end post -->
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('Older') ?></div>
			<div class="alignright"><?php previous_posts_link('Newer') ?></div>
		</div>

	<?php else : ?>

		<p>Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>
		</div>
		<!-- end colLeft -->

<!-- begin colRight -->
		<div id="colRight">	
			<?php get_sidebar(); ?>	
			</div>
<!-- end colRight -->

<?php get_footer(); ?>

avisame cualkier cosa. de ultima si se ve raro haceme una captura y veo ke puede pasar.

GRACIAS MEN! 🙂 quedo perfecto que bueno que ayan personas asi en la web!, muchas gracias 🙂
 
Atrás
Arriba