Support » Requests and Feedback » Add a wp_list_archives filter

  • Is it possible to add a wp_list_archives filter?

    Currently there is no method of changing the archives listing unless you edit the WordPress code.

    From what I can tell there is already a wp_list_pages and wp_list_categories filter that you can use for these areas but nothing for the archives?

    TIA

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Forum Moderator

    What about wp_get_archives?

    No that does not seem to work

    add_filter(“wp_get_archives”,”testme”);

    The function testme does not appear to be executed?

    add_filter(“wp_list_archives”,”testme”) does not work also.

    Any other ideas?

    TIA

    esmi

    (@esmi)

    Forum Moderator

    wp_list_pages isn’t a filter. It’s a function/template tag.

    wp_list_pages isn’t a filter. It’s a function/template tag.

    No it is a filter see the Filter Reference page.

    http://codex.wordpress.org/Plugin_API/Filter_Reference

    Basically the problem is there is a filter for pages, a filter for categories but there is NO filter for archives which seems very strange.

    I am suggesting could one be added or is there a workaround?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add a wp_list_archives filter’ is closed to new replies.