• Resolved Carolyn_Madison

    (@carolyn_madison)


    I am fairly new to wordpress but fluid in html/css. I am working on http://wthestudio.com/blog/

    I would really like to style the archives list at the bottom of the page so that it is just a horizontal list of months. It currently has a blue background to highlight the area. I am using the following tag:

    <?php wp_get_archives(‘type=monthly&limit=6’); ?>

    I have tried wrapping it in a div, and styling the ul li of the div, but nothing seems to phase it.

    Please help.

    Thank you so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • your code is missing the

      tag wrapping the wp_get_archives()

      <ul>
      <?php wp_get_archives('type=monthly&limit=6'); ?>
      </ul>

      this might stop your css from being applied properly.

      i don’t see any styles in your style.css aimed at styleing the generated list items.

      if you don’t want to / are unable to / work with a html list, check the ‘format’ parameter of wp_get_archive()

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

      format
      (string) Format for the archive list. Valid values:
      html – In HTML list (<li>) tags and before and after strings. This is the default.
      option – In select (<select>) or dropdown option (<option>) tags.
      link – Within link (<link>) tags.
      custom – Custom list using the before and after strings

    Thread Starter Carolyn_Madison

    (@carolyn_madison)

    Thank you so much! I really appreciate the help. It’s all good now.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to style "php wp_get_archives" ??’ is closed to new replies.