Support » Plugins » Nicer Archives Error

Viewing 13 replies - 1 through 13 (of 13 total)
  • Mark (podz)


    Support Maven

    That’s a very strange url to your archives using the file you mentioned. How is it implemented ?

    I use php inclusion here:

    So do you know what’s wrong? 🙁

    The problem might be that on your archives page <?php $posts_per_page = "-1"; ?> needs to be called before the require("./wp-blog-header.php");

    That fixed a similar problem of mine…it has to do with the order that it sets the variables. Let me guess, your blog is set to show only the last 4 posts on the front page?

    Yes. That’s exactly the problem. Only the first 4 posts are shown! How exactly do you fix the problem?

    Because my $posts_per_page = ‘-1’; is before the require_once (‘wp-blog-header.php’);

    Maybe try moving it after. Like I said, I think it has to do with the order that the variables are stored. That is what mixed my problem, but maybe the reverse will fix yours…

    Can you please paste a portion of your php file if it wouldn’t be too much trouble. 🙂

    Note that it is on a static page utilizing a top and bottom file for header and menu code as discussed on this link…

    have you tried any changes based on my file? It doesn’t look like it as my code displays the exceprts on the archives pages….

    good luck!

    For months and months, I’ve been having the same problem as the original poster and I just wanted to say thanks philpeeps. Your tip finally fixed my problem (I can stop trying to tear out my hair now…).

    Thanks again!

    No problem at all! I dug for quite a while to figure it out as well!!!

    I have tried to place that -1 thingie before and after my require blog-header thingie and it still doesnt solve the date archive problem :(.

    Category runs just fine but there’s only one ‘Archive’ link when date is selected for sorting.

    Here’s the link:

    For some reason it also duplicated some words from below.

    Pls advise. THanks.

    Just to clarify this on this discussion – in order to show ALL the posts independent of the sort order, this must be in the top of the narchives.php file.

    /* Don't remove this line.
    Add $posts line in this position to make this work. */
    $posts_per_page = '-1';
    include(get_template_directory() . '/header.php');

    Change the name of the last line as header.php to whatever your header template file name is within your Theme.

    Works like a charm in v1.5 now!

    Perfect fix, Lorelle! Except I had to add the footer.php page at the bottom.

    include(get_template_directory() . ‘/footer.php’);

    It can go inside just before the ?> at the bottom but I used a div outside of the archives code for design purposes.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Nicer Archives Error’ is closed to new replies.