Jump to content
Sign in to follow this  
tandan

How to set # of most recent posts for Catloop

Recommended Posts

tandan    0
tandan

hi there, I have installed catloop in content area and would like to set a limit to how many display. Right now it paginates but this could get pretty long. Please advise how I can set this limit. 

thank you!

Share this post


Link to post
Share on other sites
anthalis    5
anthalis

Hi,

 

 

Setting a number of recent posts for CatLoop while also using pagination is not possible at this time because of some WordPress limitations. There are methods to limit the number of posts returned by a query, but none of them work with query_posts used by CatLoop. 

 

get_posts has a misleading parameter "numberposts", which sounds like it would limit the posts returned, but, in effect "numberposts" and "posts_per_page", which is used in CatLoop, are interchangeable. 

 

 

A painless way to reduce the number of pages showed in pagination is by using the WP-PageNavi plugin.

  • in CatLoop settings, uncheck the box that makes CatLoop show its own pagination.
  • go to PageLines > Drag & Drop and pull Page/Post Pagination right under CatLoop. You now get Next / Previous Post links.
  • install the WP-PageNavi plugin, which will replace the Previous/Next with numbered pages. 
  • under Settings > Pagenavi, configure the text for the various pagination elements ( 3/150 instead of Page 3 of 150). You can also configure how many low-number and high-number pages to show. 

 

On this site http://enachele.com/ at the bottom, the yellow pagination is set to show:

  • Number of pages to show: 3 
  • Number Of Larger Page Numbers To Show: 2
  • Show Larger Page Numbers In Multiples Of: 5 

 

Let me know if you need further assistance. 

  • Like 1

Share this post


Link to post
Share on other sites
tandan    0
tandan

Hi there! thanks so much! I'm looking forward to trying out that solution. Thanks for the tip! :) Will keep you posted if I have questions...

Share this post


Link to post
Share on other sites
tandan    0
tandan

Worked like a charm. Thanks again! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • klausk
      By klausk+
      I really loved CatLoop on old pagelines. The dream section!! How do I get the same/similar in DMS? I've searched and cant figure. All I want to do is add category specific, paginated posts with thumbs, onto a regular page. I know there are non-DMS plugins that can do this, but I'd prefer sticking with Pagelines/DMS if at all poss. Thanks for any pointers.
    • erin-wsk
      By erin-wsk
      I'm trying to show a single post on a static page using the catloop section. I want it to show in traditional blog view with the photo and part of the text with a "read more" button. I've changed the pagelines options to show full post text and normally the read more would be automatic. However, for the catloop post- I'm still getting the full text.

      Is this possible? Thanks!
    • basmati
      By basmati
      hello, i created that same topic in pl forum - but danny told me to place it on the store forum with prefix catloop - so here we go again:
       
      i use font awesome icon font on my new page and it works well (under
      dev.). but i can't manage to get icon fonts to work within the text area
      of post excerpts (together with PL catloop plugin) - they simply won't
      show up. within post and pages and even in the footer nav i use font
      awesome without any problem.
       
      HTML for icon font is:
      <i class="icon-external-link"></i> example: from a static page with catloop category post excerpts (no
      icon font visible) - i click on read more - and now - within the post
      the icon font is visible. i think the catloop plugin causes the problem
      any ideas ?
       
      Edit: Sometimes the TinyMCE erases the HTML for icon font - when you switch to html mode and back! 
    • suzyo
      By suzyo
      Hierarchy: I can't figure this out. I bought CatLoop (which is great) and it is supposed to be a section.
       
      I find it here: http://imgur.com/vjD6K1m
       
      Also, these sections are listed in Plugins > Pageline- sections: http://imgur.com/kpQ4VJd
       
      Is this the way it's supposed to be? Thanks.
×