• I’ve found some good articles on faq and wiki (only titles, posts by category, nicer archives) but not the answer or a good hint how to do it: an archive template with title posts by category. This way:
    Category 1:
    – most recent title
    – 2nd most recent title
    – 3rd
    – etc
    Category 2:
    – most recent title
    – 2nd most recent title
    – 3rd
    – etc
    Category 3:

    Category 4:

    And so on. If I could have the power to control the order of the categories, the better.
    I appreciate if anyone could give me a hand or a link that helps me.
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Sorry if I have misunderstood your post, but Nicer Archives seems to do exactly what you want, except the ability to order the categories.

    Thread Starter nando

    (@nando)

    Yes, Nicer Archives does it, Phillip, but I don’t need – and my page shouldn’t display – the selector. Just one of its selections – by category, descending, all years.
    Do u know how to do it?
    thx.

    Try this:
    Firstly replace
    if ($_POST["orderby"] == 'category') {
    with
    if ($_POST["orderby"] == 'category' or $_POST["orderby"] == '') {
    This sets the default display to Category, then either comment out or delete the forms:
    Sort By:
    <form action="<?php getenv('PHP_SELF') ?>" method="post">
    <?php show_orderby_select() ?>
    <?php show_order_select() ?>
    <?php show_year_select() ?>
    <input type="submit" name="submit" value="sort" />
    </form>

    There is probably lots of code that could be removed but that’s up to you to experiment.
    There also may be a much better way of doing it but it worked when I tested it.
    hth
    Phillip

    Thread Starter nando

    (@nando)

    Hi Phillip,
    There’s no such line in the NicerArchives template (at least in mine doesn’t). Where’s the source of the template where you got that code line? (Or are you talking about another template?)
    What I found there:
    if ($HTTP_POST_VARS["orderby"] == 'category') {
    I’m still in trouble – and a little surprised that this kind of template is not as easier to create as I believed it would be. Thx again, Phillip.
    But… please, HELP.

    Thread Starter nando

    (@nando)

    Hi there, Phillip.
    It worked, thx A LOT buddy. Problem is I was handling the NicerArchives template from another source (wiki), that is a little bit different. I just made a first test and the code worked perfect.
    If anyone has any alternative solution, please, I’d like to know.

    Thread Starter nando

    (@nando)

    Phillip,
    Thank you VERY much. Again! Your positive karmic index must be exaggerated after all the help you gave here.
    Be sure you’ve helped build a better site in the far away South America. Thx. ??

    I’m having difficulty with combining those two techniques. Can anyone post the combined code of those two techniques?

    Can you be more specific about which two techniques you are having trouble with?
    I presume you mean my post dated: Oct 12, 2004 15:22:55.
    The second part is optional and simply alphabetizes the display.
    I don’y know if you can combine the code for the seperate page of category list with Nicer Archives, but you could have them both working on your site.
    Feel free to email me directly if you want to. My email address is available on my site.
    Phillip

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Archive titles by category’ is closed to new replies.