WordPress.org

Ready to get started?Download WordPress

Forums

Problem with get_linksbyname (2 posts)

  1. Mark McKibben
    Member
    Posted 9 years ago #

    I've setup a Portal page on my site using the get_linksbyname tag. Each section of the page is a seperate list generated using its own set of variables. One list of links is for the web comics that I read and is generated using this snippet of code:
    <?php get_linksbyname("Web Comics", "<li>", "</li>", "", show_images, "name", false, false, -1, show_updated); ?>

    The problem is that one of the links that WordPress is generating via that tag is different from what I entered into WP's Link Manager.
    Real Link: http://ctrlaltdel-online.com/index.php?t=archives&date=last

    Generated link: http://ctrlaltdel-online.com/index.php?t=archives & # 0 3 8 ;date=last

    The difference is there at the end. Instead of generating a normal &; WP is doing it as & # 0 3 8 ; Naturally, this means I get a 404 message when clicking the link. Is this something that I need to submit as a bug? Also, any suggestions on how to fix the problem?

    Note: When the link is generated there are no spaces in & # 0 3 8 ; but I had to put the spaces in for the forum to display the characters.

  2. Kafkaesqui

    Posted 9 years ago #

    Actually, the problem is not that it's generating &#038; (because that would work, is correct, and valid XHTML), but that it's generating &amp;#038;, which is just wrong.

    I'd report it as a bug:

    http://mosquito.wordpress.org

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.