Jump to content


Photo
- - - - -

Paginator dont load in custom sections :-(


  • Please log in to reply
3 replies to this topic

#1 trisquelmedia

trisquelmedia

    Super Member

  • Members
  • 145 posts

Posted 01 February 2013 - 04:11 PM

Hi:

 

The page's structure in Post Content is:

-Post Loop

-Custom Section

- Post/Page Paginator

 

Te content shows perfect, but the paginator dont load

 

The custom section only shows the post of a determinated category, the code:

 

<?php
/*
    Section: ListadoTemaGestion
    Author: PageLines
    Author URI:

Please Login or Register to see this Hidden Content


    Description: Listado Tema Gestion
    Class Name: ListadoTemaGestion
    Workswith: main
    Failswith: 404_page
*/

/**
 * Main Post Loop Section
 *
 * @package PageLines Framework
 * @author PageLines
 */
class ListadoTemaGestion extends PageLinesSection {


    
    
   function section_template() {


 echo      '  <div class="entry-content"> ';
              
?>
<h2>TEMA : GESTIÓN</h2>

<?php
echo '<ul>';
if ( have_posts() )
 {
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  $args=array(
        'category_name' => 'tema_gestion',
        'showposts' => 20,
        'paged'=>$paged,
   );
   

 query_posts($args);      
  while ( have_posts() ){
    the_post(); ?>
   <li><a href="<?php the_permalink();?>"><?php the_title(); ?></a></li>
   <?php
    }
  echo '</ul>';    
  echo '<br /><br />';
 }

else
 {
   echo 'No hay artículos';
 }

echo '</div>';
 }    
    

}
 

 

 

WHat is the problem? :-(

 

The Web: 

Please Login or Register to see this Hidden Content



#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 01 February 2013 - 04:24 PM

When you look in PageLines Meta Settings > Page Setup > Individual Page Section Control for that post (in the post editor), is Post/Page Pagination set to hide?



#3 trisquelmedia

trisquelmedia

    Super Member

  • Members
  • 145 posts

Posted 01 February 2013 - 04:46 PM

No, "Hide Post/Page Pagination" in the individual page is not active..

 

In Category Pages and Blog run perfectly , only happens in Custom Sections.

 

Any help?



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 02 February 2013 - 01:13 AM

Hi,

 

I'm afraid that since we're talking custom sections,  that's rather outside our resources or expertise to resolve in the forum.  You'd need a developer or one of our Pros to solve that.  It seems like it should normally work, but with the customized code in place, there may be a missing piece of code to enable it, or an error causing the pagination to be inactive.

 

I'd recommend contacting our Pros at

Please Login or Register to see this Hidden Content