Ver Mensaje Individual
  #22 (permalink)  
Antiguo 20/10/2011, 11:44
bbrian
 
Fecha de Ingreso: enero-2010
Mensajes: 400
Antigüedad: 14 años, 3 meses
Puntos: 6
Respuesta: Modificar Arthemia

Disculpen si utilice mal el foro pasa que hace bastante tiempo que estaba intentando hacer esto es más haces meses postie lo mismo y nadie respondio.
Les hago la ultima consulta espero no molestarlos...
Logre maquetar los post como yo quiero pero el problema ahora es que por ejemplo:

TENGO EL CONTENEDOR 1 (dos noticias horizontales)
CONTENEDOR 2 (5 noticias una abajo de la otra)
CONTENEDOR 3 (6 noticias horizontales)

Maquetado quedaron perfectas, pero en cada contenedor se repiten las mismas noticias no se como solucionarlo !

Les dejo el codigo php de cada uno:

CONTENEDOR 1:
Código PHP:
 <?php
      $page 
= (get_query_var('paged')) ? get_query_var('paged') : 1;
      
query_posts("cat=-27,-28&paged=$page&posts_per_page=2"); ?>
    
    <?php while (have_posts()) : the_post(); ?>        

    <div class="clearfloat">

    <div class="spoiler"><div class="titulonoti"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div><div class="meta">
    <?php    $values get_post_custom_values("Image");
    if (isset(
$values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values 
get_post_custom_values("Image"); echo $values[0]; ?>&w=275&h=150&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="275px" height="150px"  /></a>
      <?php ?>

    
    <table width="90%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="522" height="18" align="left" valign="top"><div class="abajoimagen"><?php the_time('l, j/m/y'?></div><div class="meta"></td>
        <td width="57%" rowspan="2" align="right"><div class="abajoimagen"><?php if(function_exists('the_views')) { the_views(); } ?></div><div class="meta"></td>
      </tr>
      <tr>
        <td height="1"></td>
      </tr>
    </table>
<div class="letra2"><?php the_excerpt(); ?></div>
    </div>    
    
    
    </div>

    </div>
    
    
    
        
      <?php endwhile; ?>
CONTENEDOR 2:
Código PHP:
<?php
      $page 
= (get_query_var('paged')) ? get_query_var('paged') : 1;
      
query_posts("cat=-20,-28&paged=$page&posts_per_page=3"); ?>
    
    <?php while (have_posts()) : the_post(); ?>    
     

    <div class="clearfloat2">

    <div class="titulonoti"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div><div class="meta">
    <div class="spoiler">
    <?php    $values get_post_custom_values("Image");
    if (isset(
$values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values 
get_post_custom_values("Image"); echo $values[0]; ?>&w=120&h=120&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="120px" height="120px"  /></a>
      <?php ?>

    <div class="letra2"><?php the_excerpt(); ?></div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="522" height="18" align="left" valign="top"><?php the_time('l, j/m/y'?></td>
        <td width="57%" rowspan="2" align="right"><?php if(function_exists('the_views')) { the_views(); } ?></td>
      </tr>
      <tr>
        <td height="1"></td>
      </tr>
    </table>
    </div>    
    
    </div>

    </div>

 <?php endwhile; ?>
CONTENEDOR 3:
Código PHP:
 <?php
      $page 
= (get_query_var('paged')) ? get_query_var('paged') : 1;
      
query_posts("cat=-20,-28&paged=$page&posts_per_page=8"); ?>
    
    <?php while (have_posts()) : the_post(); ?>    
     

    <div class="clearfloat3">

    
    <div class="spoiler">
    <?php    $values get_post_custom_values("Image");
    if (isset(
$values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values 
get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=100&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="100px" height="100px"  /></a>
      <?php ?>
<div class="titulonoti3"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div><div class="meta">
    <div class="letra2"><?php the_excerpt(); ?></div>
    </div>    
    
    </div>

    </div>

 <?php endwhile; ?>
SEPAN DISCULPARME. MUCHAS GRACIAS !