• Resolved remram

    (@remram)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • MichaelH

    (@michaelh)

    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

    Thread Starter remram

    (@remram)

    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

    MichaelH

    (@michaelh)

    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.

    Thread Starter remram

    (@remram)

    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.

    Thread Starter remram

    (@remram)

    The error is 403, not 404

    MichaelH

    (@michaelh)

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

    Thread Starter remram

    (@remram)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘<?php wp_get_archives( $args ); ?>’ is closed to new replies.