Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter nicmare

    (@nicmare)

    After digging into your code i found a very neat solution!
    the problem is: <url> needs to jump to the next line. it was right behind “<urlset>”. Good that you have a hook for that. for everyone having the same problem, just add this code snippet to your functions.php

    add_action("sm_build_content",function(){ echo "\n";});
    Anonymous User 7842110

    (@anonymized-7842110)

    Great fix. Thanks for that!

    It definitely needs including in the next release, if possible.

    I have exactly the same missing XML tag error message problem, but this didn’t work for me, so, because this one is marked resolved, I’m opening a new one.

    Thread Starter nicmare

    (@nicmare)

    maybe you have to insert another value for a new line break. it can be different from server to server. try “\n\r” instead of “\n”.
    more on stackoverflow

    hi, I have the exact same problem. https://i.imgur.com/uFonD2P.png

    so where can i put in your code ?

    function twentyten_setup() {
    
    	// This theme styles the visual editor with editor-style.css to match the theme style.
    	add_editor_style();
    
    	// Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories.
    	add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
    
    	// This theme uses post thumbnails
    	add_theme_support( 'post-thumbnails' );
    
    	// Add default posts and comments RSS feed links to head
    	add_theme_support( 'automatic-feed-links' );
    Thread Starter nicmare

    (@nicmare)

    just put it in your functions.php

    above your function twenty_setup()

    like this:

    add_action(“sm_build_content”,function(){ echo “\n”;});
    function twenty_setup(){

    }

    thank you very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemap.xml is working but Google says missing xml tag (fix inside)’ is closed to new replies.