Support » How-To and Troubleshooting » wp_get_archives formatting issue with quotes

wp_get_archives formatting issue with quotes

  • 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?

  • The topic ‘wp_get_archives formatting issue with quotes’ is closed to new replies.
Skip to toolbar