WordPress.org

Ready to get started?Download WordPress

Forums

Add a wp_list_archives filter (5 posts)

  1. wp3678
    Member
    Posted 5 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    What about wp_get_archives?

  3. wp3678
    Member
    Posted 5 years ago #

    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

  4. esmi
    Forum Moderator
    Posted 5 years ago #

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

  5. wp3678
    Member
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.