• There is a plugin to show, for example, 20 post in the category page and only 10 in the main ? For the main page i can set it in the admin panel, but i would like show in category more post, and not only 10

Viewing 15 replies - 1 through 15 (of 15 total)
  • Yep, there is:
    https://mattread.com/archives/2006/01/custom-query-string-27/
    Install, activate and go to Options > CQS submenu.

    Thread Starter Marcomail

    (@marcomail)

    I have created a new condition, but now i should modify archive.php page ? Now i can’t see any different

    You don’t have to modify the archive.php template – unless you have some hardcoded stuff in there that over-writes the plugin’s settings.
    A link would be beneficial so we could see what are we talking about ??

    Thread Starter Marcomail

    (@marcomail)

    this is the code in archive.php page:

    <?php while (have_posts()) : the_post(); ?>

    <div id=”postimage”></div>

    <div class=”post”>

    <div class=”storycontent”>
    <?php the_content(‘Read on »’); ?>
    </div>

    <h2 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” target=”_blank”><?php the_title(); ?></h2>

    <div class=”date”>Published on <?php the_time(‘l’) ?>, <?php the_time(‘F’) ?> <?php the_time(‘jS’) ?>, <?php the_time(‘Y’) ?> | <?php comments_popup_link(__(‘No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?> <?php wp_link_pages(); ?> <?php edit_post_link(‘Edit’); ?> </div>

    <!–
    <?php trackback_rdf(); ?>
    –>

    </div>

    That’s pretty much a standard one. Which theme?
    And don’t talk in enigmas ??
    What is the “new condition” you added? And what is displaying? In your OP you talked about modifying the Category view? So, do you have a category.php template? Or, on the other hand, for categories add a “is_category” condition, not “is_archive”. Did you do that?

    Thread Starter Marcomail

    (@marcomail)

    I have tried to set is_archive and is_category to show 20 post and it works….but if i tried to set for a specific category it doesn’ work.
    sorry if i speak more simple but i’m not english ??

    i have only the archive.php page

    I am not Englsih either ?? Don’t worry.
    You never said till now that you want different number of posts for different categories. You can not have that: all the category views are displayed either using the category.php template or the archive.php template.
    See: https://codex.www.ads-software.com/Template_Hierarchy
    If you want different numner of posts for different categories, then you will have to create separate Category Templates with a customized Loop.
    More reading:
    https://codex.www.ads-software.com/Category_Templates
    https://codex.www.ads-software.com/The_Loop

    Thread Starter Marcomail

    (@marcomail)

    I have created the category.php template but it’s the same

    but it’s the same

    What is the same? Same as what? Do you mind being a bit more descriptive?
    What is what you wanted; what did you do; what was the result?
    Link?

    Thread Starter Marcomail

    (@marcomail)

    I have the same result, it shows me only 10 post, and not 20…i have created category.php page with the same code of archive.php, but after i have created a custom query for the category it shows me only 10 post ??

    why ?

    Are you using the right plugin version? The link I gave you above is for WP 2.x.
    There is an older version for pre-2 WP.

    I can’t figure out why it doesn’t work for you – I’ve recommended it many times and everybody was happy with it. It also works on several blogs that I installed for others.

    Thread Starter Marcomail

    (@marcomail)

    yes, it’s the right plugin version, 2.7 the last one for WordPress 2.0.

    I have tried with the original theme and it doesn’t work for a specific category.

    have you tried it in wordpress 2.0.2 for show tot post in a specific category ? For general archive and category it works well

    My friend, I have told you a few posts ago that it does NOT work in that way. You can NOT have different number of posts on different categories. It was never intended to do that.

    Your English is good enough to understand: NO. This plugin does not do that and I don’t know of any plugin that does that.
    You can have a category template for that ONE category of yours that has to be different and play with the query_posts and the Loop. Make a category-XX.php where XX is the cat ID#.

    Thread Starter Marcomail

    (@marcomail)

    I have understand, but the plugin is clear.

    In the option you can make a custom query for a specific category to show the last, for example, 20 post order by date, category, title etc etc

    So, if what you say is exactly…the plugin don’t work, if it worked i could make what i’m saying.

    I would like have only 1 category to show 20 post, you advise me to create a custom page category-6.php (i have read the docs) with a different loop…and it’s ok for me, after i will try to do this operation

    Thread Starter Marcomail

    (@marcomail)

    i have created page category-6.php and i’ve added after
    <?php get_header(); >

    this code

    <?php query_posts(‘category_name=from-other-blog&showposts=20’); ?>

    now it works without any plugin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘More post in category page’ is closed to new replies.