Support » Plugin: Single Categories » Increase number of posts on page

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author finbey

    (@finbey)

    There should be as many post as on the normal sites

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

    Plugin Author finbey

    (@finbey)

    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.

    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

    steki

    (@steki)

    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. =)

    missi1976

    (@missi1976)

    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

    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

    Plugin Author finbey

    (@finbey)

    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

    Plugin Author finbey

    (@finbey)

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Increase number of posts on page’ is closed to new replies.