• Resolved Stephane

    (@passimal)


    Hello

    since update to last stable version , I ve a problem with pagination ;-(
    If I use template pagination dont work
    https://silorientmetaitconte.net/lorient-date-par-date/

    My short code :
    [catlist name=date orderby=title order=asc numberposts=50 pagination=yes template=lorient-date]
    And Now
    [catlist name=date orderby=title order=asc numberposts=50 pagination=yes]

    Now I ve pagination with this new shortcode

    I ve another problem with page template here :
    https://silorientmetaitconte.net/lorient-theme-par-theme/

    my template file :

    
    <?php
    $lcp_display_output = '';
    $lcp_display_output .= $this->get_category_link('strong');
    $lcp_display_output .= '<ul class="lcp_catlist">';
     
    foreach ($this->catlist->get_categories_posts() as $single){
      $lcp_display_output .= "<div id='toto'>";
      $lcp_display_output .= $this->get_post_title($single);
      $lcp_display_output .= $this->get_comments($single);
      $lcp_display_output .= ' ' . $this->get_date($single);
      $lcp_display_output .= $this->get_author($single);
      $lcp_display_output .= $this->get_custom_fields($this->params['customfield_display'], $single->ID);
      $lcp_display_output .= $this->get_thumbnail($single);
      $lcp_display_output .= $this->get_content($single, 'p', 'lcp_content');
      $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_excerpt');
      $lcp_display_output .= "</div><br/>";
    
    }
    $lcp_display_output .= '</ul>';
    
    $lcp_display_output .= $this->get_pagination();
    
    $this->lcp_output = $lcp_display_output;
    
    • This topic was modified 6 years, 4 months ago by Stephane.
    • This topic was modified 6 years, 4 months ago by Stephane.
    • This topic was modified 6 years, 4 months ago by Stephane.
    • This topic was modified 6 years, 4 months ago by Stephane.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Stephane

    (@passimal)

    Fyi : I ve downgraded to 0.73.2 and pagination works with template …

    Someone can help me for pagination ?
    Thanks a lot

    Plugin Contributor zymeth25

    (@zymeth25)

    Quick fix for now:
    Go to the plugin’s directory, and find the lcp-catlistdisplayer.php file located in the include directory.
    find this piece of code:

    private function get_pagination(){
      $this->catlist->get_pagination();
    }

    change it to this:

    private function get_pagination(){
      return $this->catlist->get_pagination();
    }

    Or you could wait for the next version’s release wich should fix that.

    Plugin Contributor zymeth25

    (@zymeth25)

    Fixed in v0.75

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘pagination with Template’ is closed to new replies.