WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cyberlocke
    Member
    Posted 1 year ago #

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

    Matt

    http://wordpress.org/extend/plugins/single-categories/

  2. finbey
    Member
    Plugin Author

    Posted 1 year ago #

    There should be as many post as on the normal sites

  3. cyberlocke
    Member
    Posted 1 year ago #

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

  4. finbey
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 11 months 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
    Member
    Posted 10 months 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 =)

    german:
    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
    Member
    Posted 10 months 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
    Member
    Posted 8 months ago #

    hi,

    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
    Member
    Plugin Author

    Posted 8 months 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.

    Greetz

  10. finbey
    Member
    Plugin Author

    Posted 8 months 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

About this Topic

Tags

No tags yet.