• When you ckick on the Archives Tab on the Horizontal Menu, I get the following message:

    Easy, tiger. This is a 404 page.
    You are totally in the wrong place. Do not pass GO; do not collect $200.

    Instead, try one of the following:

    Hit the “back” button on your browser.
    Head on over to the front page.
    Try searching using the form in the sidebar.
    Click on a link in the sidebar.
    Use the navigation menu at the top of the page.
    Punt.

    How can I fix/correct this?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Disable and re-enable your customized permalinks settings which should resolve the issue..if it does not then add this code in htaccess:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks,

    Shane G.

    Thread Starter mrsfjfc

    (@mrsfjfc)

    I went to Settings/Permalinks and it was on Day and name, changed to Default and then back to that again and nothing!

    Is this a code you’re presenting me with and where do I enter this code?

    Thanks for your help!!

    Thread Starter mrsfjfc

    (@mrsfjfc)

    I noticed that in the backend of my Site, there wasn’t a “Page” titled “Achives” and so I added it. It did correct the Error Page message when clicking on the Archives tab on my Horizontal Menu but now there are no stories that appear there.

    Do I still put in that code (above) in the ht-access or is something different required now?

    Ignore the .htaccess info. It has nothing to do with this problem. It looks like your theme should have a custom Archives template file but that this file is missing – so you’ll need to create one yourself.

    Make a copy of page.php and name this new file archives.php. Edit the page and at the very top, add:

    <?php
    /*
    Template Name: Archives
    */
    ?>

    Find the block that starts with <?php if (have_posts()) : while (have_posts()) : the_post(); ?> and ends with <?php endwhile; endif; ?> and replace it with:

    <h2>Archives by Month:</h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    
    <h2>Archives by Subject:</h2>
    <ul>
    <?php wp_list_categories(); ?>
    </ul>

    Edit your Archive page and apply this new template.

    Thread Starter mrsfjfc

    (@mrsfjfc)

    I have a Archives Page Template (archives.php) and it looks like this:

    <?php
    /*
    Template Name: Archives
    */
    ?>

    <?php get_header(); ?>

    <div id=”content_box”>

    <?php include (TEMPLATEPATH . ‘/l_sidebar.php’); ?>

    <div id=”content” class=”pages”>

    <h2>Browse the Archives…</h2>
    <div class=”entry”>
    <h3 class=”top”>by month:</h3>

      <?php wp_get_archives(‘type=monthly’); ?>

    <h3>by Category:</h3>

      <?php wp_list_categories(‘title_li=0’); ?>

    </div>
    <div class=”clear rule”></div>

    </div>

    <?php include (TEMPLATEPATH . ‘/r_sidebar.php’); ?>

    </div>

    <?php get_footer(); ?>

    It looks like that first block is already part of itbut can’t find the part you had said to replace.

    Thread Starter mrsfjfc

    (@mrsfjfc)

    Just wanted to bump this to the front, to see if I can get it resolved today.

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