WordPress.org

Ready to get started?Download WordPress

Forums

How to get rid from <li>s in Archive by date/month/year links lists? (3 posts)

  1. yurets
    Member
    Posted 8 years ago #

    What .php file should I edit? Or may be there is a plug-in available?

  2. billh
    Member
    Posted 8 years ago #

    I've simply made my archives a drop-down option list. You can add this code to your sidebar:
    <form name="archiveform" action="">
    <select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    <option value=''>Select Month</option><?php get_archives('monthly','','option','','',false); ?>
    </select>
    </form>

    Also, you can use the parameters of the wp_get_archives() function as described in the Codex:
    http://codex.wordpress.org/Template_Tags/wp_get_archives

  3. billh
    Member
    Posted 8 years ago #

    Or you could use the parameters of the wp_get_archives function as described in the Codex at:
    http://codex.wordpress.org/Template_Tags/wp_get_archives

Topic Closed

This topic has been closed to new replies.

About this Topic