• Resolved GreyIBlackJay

    (@greyiblackjay)


    So I was using this for a site of mine (FRC site, using it for one of the requirements), and I found that the sitemap created a bunch of HTML errors. All for a really simple reason.

    Line 1229:
    $posts .= '<li><a href=' . get_permalink() . ' title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';

    What was happening was it was creating all the links as , instead of

    All I had to do to fix this was change it to
    $posts .= '<li><a href="' . get_permalink() . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';

    Just adding doublequotes around the stuff after href=

    Mind including this in the next version?

    http://ww.wp.xz.cn/extend/plugins/wp-realtime-sitemap/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Realtime Sitemap] Large amount of HTML errors’ is closed to new replies.