wp_get_archives formatting issue with quotes (1 post)

  1. ginnilamp
    Posted 8 years ago #

    Hi, I am using the following code to output a list of my archives by month:

    <?php wp_get_archives('type=monthly&format=other&before=<li class="archives_dataitem">&after='); ?>

    This displays OK in a brower, but upon validation checking it seems that what is really being output to the browser is:

    .....<li class=\"archive_dataitem\"><a href=....

    Note that trailing backslash before the double quote.

    I've just upgraded to 2.1, and I'm sure (but can't be 100% certain) that this seemed to work before.

    Any ideas on how to allow me to use a double quote in the pre-formatting for wp_get_archives's output?

Topic Closed

This topic has been closed to new replies.

About this Topic