Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

Ayuda post post en 1 columna

Estas en el tema de Ayuda post post en 1 columna en el foro de WordPress en Foros del Web. Hola a todos soy nuevo en la cominidad y no muy experto en wl WP quisiera pedir ayuda para mi blog lo que pasa esque ...
  #1 (permalink)  
Antiguo 19/07/2009, 16:29
 
Fecha de Ingreso: julio-2009
Mensajes: 2
Antigüedad: 14 años, 9 meses
Puntos: 0
Ayuda post post en 1 columna

Hola a todos soy nuevo en la cominidad y no muy experto en wl WP quisiera pedir ayuda para mi blog

lo que pasa esque instale un tema pero bienen los post en el home en 2 columnas
lo unico que pido es que me puedan ayudar a que los post solo quedaran en 1 columna alo largo y ancho. el codigo de home.php es


Código PHP:

<?php get_header(); ?>    
<?php 
global $options;
foreach (
$options as $value) {
if (
get_settings$value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings$value['id'] ); } }
      
?>
<div id="container">
    
<div id="left-div">
        
<div id="left-inside">

<!--Begin Feaured Article-->
<?php $my_query = new WP_Query("category_name=Featured Articles&showposts=$artsee_homepage_featured;");
while (
$my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate $post->ID?>
<div id="featured">
<div class="thumbnail-div-featured"><a href="<?php the_permalink() ?>">
<img style="border: none;" alt="featured article" src="<?php bloginfo('stylesheet_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo get_post_meta($post->ID"Thumbnail"true); ?>&amp;h=160&amp;w=580&amp;zc=1" /></a>
</div>
<div class="post-info">Posted by <?php the_author() ?> in  <?php the_category(', '?> on  <?php the_time('m jS, Y'?> |  <?php comments_popup_link('No Comments''1 Comment''% Comments'); ?></div>
<span class="titles-featured"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
<?php the_content_limit(500""); ?>
<div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></div>
<div style="clear: both;"></div>
</div>
<?php endwhile; ?>
<!--End Feaured Article-->

<!--Begind recent post (single)-->
<?php if (have_posts()) : while (have_posts()) : the_post(); 
  if( 
$post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

<?php static $ctr 0
if (
$ctr == "$artsee_homepage_posts;") { break; } 
else { 
?>

<!--The Following code checks for yout thumbnail image-->
<?php 
// check for thumbnail
$thumb get_post_meta($post->ID'Thumbnail'$single true);
// check for thumbnail class
$thumb_class get_post_meta($post->ID'Thumbnail Class'$single true);
// check for thumbnail alt text
$thumb_alt get_post_meta($post->ID'Thumbnail Alt'$single true);
?>
<div class="home-post-wrap">    
<span class="post-info">Posted by <?php the_author() ?> on  <?php the_time('m jS, Y'?></span>
<span class="titles"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('''...'true'26'?></a></span>
<div style="clear: both;"></div>
<!--Display thumbnail if found-->
<div class="thumbnail-div">
<?php // if there's a thumbnail
if($thumb !== '') { ?>
<a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo $thumb?>&amp;h=90&amp;w=90&amp;zc=1" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"  style="border: none;" /></a>
<?php // end if statement
// if there's not a thumbnail
else { echo ''; } ?>
<!--End display thumbnail if found-->
</div>    
<?php the_content_limit(400""); ?>
<div class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></div>
</div>

<?php $ctr++; } ?>

<?php endwhile; ?>
<!--end recent post (single)-->

<!--Begin Popular Articles-->
<div class="home-post-wrap2">

<div style="float: left; width: 50%;">
<span class="toptitle">Popular Articles</span>
<ul class="list1">
<?php mdv_most_commented(); ?>
</ul>
</div>

<div style="float: left; width: 50%;">
<span class="toptitle">Random Articles</span>
<ul>
 <?php $my_query = new WP_Query('orderby=rand&showposts=6');
  while (
$my_query->have_posts()) : $my_query->the_post();
   
?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title2(''''true'400'?></a></li>
<?php endwhile; ?>
</ul>
</div>

</div>
<!--End Popular Articles-->

<?php else : ?>

<!--If no results are found-->
<div class="home-post-wrap2">
<h2 >No Results Found</h2>
<p>Sorry, your search returned zero results. </p>
</div>
<!--End if no results are found-->

<?php endif; ?>

</div>
        
</div>

<?php get_sidebar(); ?>    
<?php get_footer(); ?>   
    
</body>
</html>
  #2 (permalink)  
Antiguo 20/07/2009, 01:19
Avatar de axdds34  
Fecha de Ingreso: diciembre-2005
Ubicación: Tei Chua - China
Mensajes: 214
Antigüedad: 18 años, 4 meses
Puntos: 4
Respuesta: Ayuda post post en 1 columna

Yo mucha idea no tengo, pero creo que la linea que hay que quitarle es:
<?php get_sidebar(); ?>
Y alguna modificacion mas abra que hacerle para que te quede todo parejo, porque esa columna seguramente estara definida en los archivos css.
  #3 (permalink)  
Antiguo 21/07/2009, 03:19
 
Fecha de Ingreso: julio-2009
Mensajes: 2
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: Ayuda post post en 1 columna

graacias pero no no funciono

y la idea es que el blog quede como uno normal de 2 columnas 1 la sidebar y otra el espacio para los post o entradas pero q no salgan dobles solo 1x1

porfa alguien sabe como puedo hacerlo?
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:22.