WordPress.org

Ready to get started?Download WordPress

Forums

Plugin: Category Page 2.5 (page2cat): how to display more (2 posts)

  1. searchen
    Member
    Posted 5 years ago #

    I am using the "Category Page 2.5" plugin by pixline.net.

    Unfortunately the Forum there is not working (it rejects all new registrations).

    I am using the function [catlist], which works well for me. However, it at present only displays 5 items in the list.

    I would like it to display all the entries.

    Any suggestions, or an e-mail link to the pixline people?

    Thanks

  2. techhouse
    Member
    Posted 4 years ago #

    hey searchen,

    you can add number of posts inline:
    [catlist id=1 numberposts=20] // 20 entries
    [catlist id=1 numberposts=-1] // unlimited entries

    or you can change the default 5 cat listings in the list_cat_posts.php, in the \wp-content\plugins\list-category-posts directory on your wordpress website.

    change the numberposts in this function:

    function catlist_func($atts, $content=null) {
      $atts=shortcode_atts(array(
    			     'id' => '0',
    			     'name' => 'default',
    			     'orderby' => 'date',
    			     'order' => 'desc',
    			     'numberposts' => '5',
    			     'date' => 'no',
    			     'author' => 'no',
    				 'language' => 'en'
    			     ), $atts);
      return list_category_posts($atts);
    }

    hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic