• Here is the code in my loop to get the monthly archive links for my sidebar…

    <?php wp_get_archives('type=monthly'); ?>

    Here is the html it outputs…


    <li><a href='https://www.domain.url/blog/2005/12/' title='December 2005'>December 2005</a></li>
    <li><a href='https://www.domain.url/blog/2005/11/' title='November 2005'>November 2005</a></li>

    I want to not have the

    • tags around the monthly archive links. Could anyone tell me where I would go to edit the source of these
    • tags?
      I was able to successfully remove them from my category links by editing wp-includes/template-functions-category.php on lines 362-3 & 368…


      if ($list) {
      $thelist .= "t
      <li>$linkn";


      if ($list) $thelist .= "</li>
      n";

      I looking for where to go to find the

    • tags for the sidebar monthly archive links. Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Removing <li> tag from monthly archive links in sidebar’ is closed to new replies.