WordPress.org

Ready to get started?Download WordPress

Forums

Issues with wp_get_archives(); (2 posts)

  1. Goldnpck
    Member
    Posted 3 years ago #

    Hello,

    I'm actually making my own theme for wordpress, and I replaced the text links to "archives" by a button i've designed on photoshop.

    The problem is that wp_get_archives(); returns something like :

    [please use the 'code' button to mark any code within the post]

    <li><a%20href='http://localhost/wordpress/?m=201105'%20title='mai%202011'>mai%202011</li>
    I would like to have just the link. Is it possible ?

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    assuming that you mean to get rid of the list tags, you should be able to use 'format=custom' and 'before=' and 'after='

    example:
    <?php wp_get_archives('format=custom&before=&after='); ?>

    http://codex.wordpress.org/Function_Reference/wp_get_archives

Topic Closed

This topic has been closed to new replies.

About this Topic