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

Problema de paginación en wordpress

Estas en el tema de Problema de paginación en wordpress en el foro de WordPress en Foros del Web. Alo Gente, hace 3 dias que no puedo resolver esto y ya rompi todo el escritorio, resulta que tengo una categoria con subcategorias y esta ...
  #1 (permalink)  
Antiguo 23/03/2011, 17:29
 
Fecha de Ingreso: marzo-2011
Mensajes: 2
Antigüedad: 13 años
Puntos: 0
Pregunta Problema de paginación en wordpress

Alo Gente, hace 3 dias que no puedo resolver esto y ya rompi todo el escritorio, resulta que tengo una categoria con subcategorias y esta subcategoria cuando es clickeada muestra todos los posts uno debajo del otro, el tema es que la paginación la toma pero no cambia de pagina dice not found cuando se clickea :S

Código PHP:
<?php  ?>
<?php $mc 
get_category($cat); $reale $mc->category_nicename?>
<?php
// $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

//  $args=array('post_type' => 'pokervivo', 'posts_per_page' => 10, 'paged' => $paged ); 
// $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); 
?>
<?php 
// query_posts("post_type=pokervivo&category_name='.$reale.'&posts_per_page=6&paged='.$paged.'");

// query_posts( array('post_type' => pokervivo, 'category_name' => $reale, 'paged' => $paged) ); 
// if(function_exists('wp_paginate')) {

 
wp_paginate();
 
//  }
// if (have_posts()) : while (have_posts()) : the_post();
?>



<?php

// El que Funcionaba
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1
 
query_posts('post_type=pokervivo&category_name='.$reale.'&posts_per_page=6&order=DSC&paged='.$paged); if (have_posts()) : 
 while (
have_posts()) : the_post(); 

?>    


        <div class="inside full sin-bottom">
        <h5><?php the_time('d.m.Y'); ?> Autor: <?php the_author(); ?> </h5>
        <h1><?php the_title(); ?></h1>
        </div>

<div class="anexo">
            <h4>Conexi&oacute;n Social</h4>
            
            <br/>
             <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-count="horizontal" data-via="codigopokerok">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <br/><br/>

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=like&amp;font&amp;colorscheme=light&amp;height=32" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:32px;" allowTransparency="true"></iframe><br/><br/>
            <h4>Tags</h4>
            <p><?php the_tags('',', ','<br />'); ?></p>
        </div>


        <div class="inside sin-top sin-bottom">
        
                    <?php
                            
if(has_post_thumbnail(get_the_ID(), 'large'))
                            {
                                
$image_id get_post_thumbnail_id(get_the_ID());
                                
$image_url wp_get_attachment_image_src($image_id'large'true);
                        
?>    
                            <img src="<?php echo get_bloginfo'stylesheet_directory' ); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&w=450&zc=1" alt=""/>
                        <?php } else {
                        echo 
' Sin Imagen Todavia';
                        }
                        
?>        
                    </div>
        <div class="inside full">    
        <?php the_content(); ?><br/><br/>
           
            <div id="disqus_thread"></div>


        </div>
<div class="slider-posts" id="central-publicidad">
    <a href="http://www.acity.com.pe/" target="_blank"><img src="/new/images/lapt.jpg" /></a>
    <a href="http://www.maderopoker.com.ar" target="_blank"><img src="/new/images/madero.jpg" /></a>
    <a href="http://www.youtube.com/codigopoker" target="_blank"><img src="/new/images/youtube.jpg" /></a>
    <a href="http://www.citycenter-rosario.com.ar/" target="_blank"><img src="/new/images/citycenter.jpg" /></a>
    <a href="http://www.facebook.com/profile.php?id=100001333705221#!/pages/CodigoPoker/117945374886336" target="_blank"><img src="/new/images/facebook.jpg" /></a>
    <a href="http://www.pokerstars.net" target="_blank"><img src="/new/images/homegames.jpg" /></a>
    <a href="http://twitter.com/codigopokerok" target="_blank"><img src="/new/images/twitter.jpg" /></a>
</div>
<?php
// endwhile; }
?>
<?php 
endwhile; ?>
<?php 
else : ?>
<h2>No Encontramos Nada!</h2>
<?php endif; ?>
<?php 
if (function_exists("pagination")) {
    
pagination($additional_loop->max_num_pages);
?>


<?php if(function_exists('wp_paginate')) { wp_paginate(); } ?>
<?php
 wp_reset_query
();
?>

<!-- 

<?php $wp_query = new WP_Query();  $wp_query->query('post_type=pokervivo&showposts=1'.'&paged='.$paged); 
while (
$wp_query->have_posts()) : $wp_query->the_post();?>
<h3><?php the_title(); ?></h3>
<?php the_content();?>  
<?php endwhile; wp_reset_query(); ?>
<?php 
if(function_exists('wp_paginate')) { wp_paginate(); } ?>
<?php 
if (  $wp_query->max_num_pages ) { ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link__'<span class="meta-nav">&laquo;</span> Dicas antigas''twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link__'Dicas mais recentes <span class="meta-nav">&raquo;</span>''twentyten' ) ); ?></div>
</div>
<?php ?>

-->


</div>
Alguien sabe que puede ser?
  #2 (permalink)  
Antiguo 23/03/2011, 22:49
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Tema movido desde PHP a WordPress

Etiquetas: paginacion, php
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 08:26.