WordPress.org

Forums

wp_link_pages: problem with arguments (6 posts)

  1. Dextro
    Member
    Posted 10 years ago #

    Hello,

    In de Codex ( http://codex.wordpress.org/Template_Tags/wp_link_pages ) there's written that you can use <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>

    But the result of this is: <p id=\"page-links\"> ... </div>

    So, the " are escaped. Is this an error or am I doing something wrong here?

  2. Lorelle
    Member
    Posted 10 years ago #

    I did extensive tests on this link and this article from the WordPress Codex on Styling Page-Links is part of the results, as are some of the examples in the wp_link_pages() page you listed above. I never saw that result.

    Double check you copied it right and try again. Or try:
    http://codex.wordpress.org/Template_Tags/link_pages

  3. Dextro
    Member
    Posted 10 years ago #

    link_pages runs perfectly, but wp_link_pages not, very strange.

    I just copy-pasted the code like it is written here above.

  4. Lorelle
    Member
    Posted 10 years ago #

    I'll take another look at it. Thanks for the heads up.

  5. Dextro
    Member
    Posted 10 years ago #

    ok, let me know if you can reproduce the same problem.

  6. Jeff Starr
    Member
    Posted 9 years ago #

    Anyone still dealing with this problem will find an easy hack at perishablepress.com

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.