Ver Mensaje Individual
  #13 (permalink)  
Antiguo 09/10/2009, 16:32
mick8520
 
Fecha de Ingreso: octubre-2009
Mensajes: 12
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: una pequeña ayudadita

oye compañero una duda mira

quito este codigo del index.php

Código PHP:
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1
$my_query = new WP_Query('showposts=6&paged=$page');
$wp_query $my_query;
query_posts("showposts=6&paged=$page");?>
       
<?php if (have_posts()) : ?>
<?php 
while (have_posts()) : the_post();?>

            
            <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
                <?php the_title(); ?>
                  </a></h2>
                <p><small>
                <?php the_time('F jS, Y'?> 
                <!-- by <?php the_author() ?> -->
                </small>                </p>
      <div class="entry">
                    <?php the_content('Read the rest of this entry &raquo;'); ?>
              </div>

    <p class="postmetadata"><?php the_tags('Tags: '', ''<br />'); ?></p>
            </div>        
<?php endwhile; ?>
y lo reemplazo por este otro

Código PHP:
<?php query_posts('showposts=4'); ?>
<?php 
while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
por que si reemplazo el segundo por el primer codigo me sale error

o ya me estoy equivocando, ya lo instale de nuevo ahora solo me brinca esa duda

disculpa las molestias compañero...