Single Categories
[resolved] Increase number of posts on page (10 posts)

  1. cyberlocke
    Posted 3 years ago #

    Is there a way to increase the number of posts that appear on a page using the Single Categories plugin? Thanks!



  2. finbey
    Plugin Author

    Posted 3 years ago #

    There should be as many post as on the normal sites

  3. cyberlocke
    Posted 3 years ago #

    For some reason ours is only showing us 5, with no forward and back.

  4. finbey
    Plugin Author

    Posted 3 years ago #

    H. strange..

    At the moment I have not much time and also cant fix this problem but if you dont mind waiting I will fix as soon as i have time left.

  5. missi1976
    Posted 2 years ago #

    hello together,
    and thanks for the great plugin.
    @cyberlocke: just change the special 'postnumber' in line 123 of the single_categories.php

    @finbey: here I have the same question. after the posts on "normal" page it doesn't appear any kind of navigation or number of posts to navigate between the different navipages. So the user/visitor hasn't any possibility to navigate through the pages/posts (articles). in a "usual" wp blog you see the wp navigation in the end of category posts if you have more than the desired number.
    do you have any possibility to change/fixe it? that would be great making this plugin perfect. if U want I could send an image for better description of this "problem".

    best wishes, missi

  6. steki
    Posted 2 years ago #

    exactly, at the moment there are only 5 posts per page. Would be nice to have an option maybe like [category_id=5 numberofposts=5] (maybe 0 for standard wordpress) and of course, I miss a "older/newer entries" button =)

    exakt, leider werden im Moment nur 5 Posts pro Seite angezeigt. Es wäre gut, wenn man das Standard Verhalten das man unter Einstellungen -> Lesen einstellt hätte oder Syntaxspezifische Anzahl an Posts pro Seite vielleicht so: [category_id=5 numberofposts=5] (vielleicht auch eine 0 für das Standard Verhalten des Blogs. Ebenso fehlt mir ein "ältere / neuere Beiträge" Button am Ende der Seite, wenn es mehr Posts sind. =)

  7. missi1976
    Posted 2 years ago #

    hello steki,
    great (must have) idea... maybe somebody could implement such navigation (pagination) / buttons below the site. would be great if somebody could improve this item for this great plugin for better visibility and (pagination)...

    wishes missi1976

  8. migdes
    Posted 2 years ago #


    I had the problem with the five posts as well.

    My solution:
    edit single_categories.php

    function loadCategory($cat_id)
    	$args = array(
    		'numberposts'     => 5,
    		'offset'          => 0,
    		'category'        => $cat_id,
    		'orderby'         => 'post_date',
    		'order'           => 'DESC',
    		'post_type'       => 'post',
    		'post_status'     => 'publish',
    		'suppress_filters' => true
    	$posts_array = get_posts( $args );
    	return $posts_array;

    change 'numberposts' => 5,
    to 50

  9. finbey
    Plugin Author

    Posted 2 years ago #

    Hi you guys,

    I updated sc just now and added a param for this problem. Now you can add after [category_id=x] an optional param like [category_posts=50]. migdes solution is correct but if you ever update its gone. So you can now addto every single page an limiter. So you are free to show 10 posts in cat 1 and 100 in another.


  10. finbey
    Plugin Author

    Posted 2 years ago #

    [category_id=1][category_posts=123] <-- displays 123 Posts from cat 1
    [category_id=2] <-- displays 5 posts (standard) from cat 2

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Single Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.