Hook wp_get_archives

  • Unknown's avatar

    In archive.php i coded a way to display archived posts from a specific category by providing a GET variable.
    It works when i put it manually in the URL, but currently i use wp_get_archives() to get the archives by month.
    Would it be possible to hook wp_get_archives() in functions.php to always append ?cat=X to the URL generated?

    Thanks in advance, bye.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The blog you specified at nwarrenfl.open-web.fr does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Hook wp_get_archives’ is closed to new replies.