Support » Fixing WordPress » wp_link_pages

  • Hi,

    Trying to make my pages XHTML valid.

    I am using the following:

    <?php wp_link_pages('before=<p>Pages:<span class=pagenumberhighlight>&after=</span></p>'); ?>

    This creates an error in the validator which says: “an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.”

    I assume that’s because I don’t have a quotation mark around the class … but, if I write (as suggested in the wiki):

    <?php wp_link_pages('before=<p>Pages:<span class="pagenumberhighlight">&after=</span></p>'); ?>

    I get a / addeded before my quotes and the CSS won’t read the class of my span.

    Any suggestions ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_link_pages’ is closed to new replies.