Forums

[resolved] <?php wp_get_archives( $args ); ?> (8 posts)

  1. remram
    Member
    Posted 2 years ago #

    ver 2.9.2

    If i try to <?php wp_get_archives( $args ); ?> by month or year I get an error, (file not found), but if I try by post is working ¿what must change in the args to get the archives by month.

    permalinks are working ok.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    What are your $args values?

    See the template tag, wp_get_archives(), for a complete list.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  3. remram
    Member
    Posted 2 years ago #

    for example:

    <?php wp_get_archives('type=monthly&limit=5'); ?>
    Is not working, but

    <?php wp_get_archives('type=daily&limit=15'); ?>

    is ok

    http://www.webmar.com

    if i use year or monthly I get and error, but the others arg$ are ok

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Deactivate all plugins, switch to the WordPress Default theme, then change the wp_get_archives in the wp-content/themes/default/sidebar.php to see if you get the same error.

  5. remram
    Member
    Posted 2 years ago #

    Thanks for your help, I test that option but with the same result -(,

    I migrated from blogger to a test directory and there everithing goes well, then i pass only the index to the root and something is wrong with the archives or htaccess.

  6. remram
    Member
    Posted 2 years ago #

    The error is 403, not 404

  7. MichaelH
    Volunteer
    Posted 2 years ago #

    Maybe try deleting any .htaccess then in Settings->Permalinks, switch to the 'default' permalinks.

  8. remram
    Member
    Posted 2 years ago #

    Thanks,

    I do that, but only works everything ok with numeric or default permalinks, if I chose other option the archives don´t work, so I give up and will keep the numeric.

    May be the next week i wll try again.

    Thanks for your time and help Michael

Topic Closed

This topic has been closed to new replies.

About this Topic