Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/07/2015, 14:15
vanus17
 
Fecha de Ingreso: enero-2012
Mensajes: 25
Antigüedad: 12 años, 3 meses
Puntos: 0
2 paginaciones en wordpress no funcionan

Hola, disculpen si repito un tema pero en los que busqué no encuentro la respuesta. En una página WP estoy utilizando dos paginaciones una del thme y otra de un plugin, entiendo que por alguna razón estan conflictuando, la que tiene el problema es la sig: Me pasa lo q a todos, sólo muestra una página, en la 2da vuelve al mismo lugar... No se si estoy pegando la parte correcta del código...

<div class="filter-options">
<button data-group="all" class="btn active btn--warning"><?php _e('All', 'roadthemes');?></button>
<?php
$datagroups = array();
if( isset($road_opt['portfolio_per_page']) ) {
query_posts( 'posts_per_page='.$road_opt['portfolio_per_page'].'&post_type=project' );
}
while ( have_posts() ) : the_post();

$prcates = get_the_terms($post->ID, 'project-category' );

if ($prcates){
foreach ($prcates as $category ) {
$datagroups[$category->slug] = $category->name;
}
}
?>
<?php endwhile; // end of the loop. ?>
<?php
foreach($datagroups as $key=>$value) { ?>
<button data-group="<?php echo esc_attr($key);?>" class="btn btn--warning"><?php echo esc_html($value);?></button>
<?php }
?>
</div>
<div class="list_projects entry-content">

<?php projects_project_loop_start(); ?>
<?php $road_projectrows = 1; ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php projects_get_template_part( 'content', 'project' ); ?>

<?php endwhile; // end of the loop. ?>

<?php projects_project_loop_end(); ?>

</div><!-- .projects -->

<?php
/**
* projects_after_loop hook
*
* @hooked projects_pagination - 10
*/
do_action( 'projects_after_loop' );
?>

<?php else : ?>

<?php projects_get_template( 'loop/no-projects-found.php' ); ?>

<?php endif; ?>