• Please add meta tag

    <meta name=”description” content=”> or echo esc_attr(get_bloginfo(‘description’));

    to sitemap.xsl

    ERROR : Missing description META tag
    What is the problem?
    There is no description in the page title section. Search engines can use the description contained in the tag on the search results page. A quality description that is relevant to the content of the page and matches the searcher’s intent can help you increase traffic, as the description increases the search engine traffic to your page.

    Don’t want to make your own template to fix this Bing crawl error

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Marcus Karlos

    (@power2009)

    Please add this meta to your XSL in next Update)

    Example:

    <title>XML Sitemap</title>
    <meta name="description" content="This file was dynamically generated using the WordPress content management system and XML Sitemap Generator for Google by Auctollo.">
    Thread Starter Marcus Karlos

    (@power2009)

    Please add lang=”en” too <html xmlns=”https://www.w3.org/1999/xhtml&#8221; lang=”en”>

    for more supporting BING

    WARNING : The META Language tag is missing
    What is the problem?
    There is no meta information about the language on the page. Metalanguage information is a hint that helps us determine the language and country/region for which a page’s content is intended. This information may be useful if your site is hosted outside of the country/region. The content-language meta tag allows you to embed the country/region code in the section of your page. For example, indicates that this is an English page for the United Kingdom. You can also use or tag.</p>

    Thread Starter Marcus Karlos

    (@power2009)

    Issue Description:

    After testing the HTML version of the sitemap, it was observed that meta tags are not included in the final HTML document. This omission results in errors when checked by search engines, particularly Bing, which reports missing meta tags such as <meta name="description">.

    Proposed Solution:

    To resolve this issue, support for essential meta tags needs to be added to the XSL template used for converting XML to HTML, and a line of code should be added to the sitemap-core.php file to ensure meta tags are correctly handled.

    Steps to Implement the Solution:

    1. Update the XSL Template File:
      Ensure that your XSLT template (sitemap.xsl) includes rules for including meta tags. This will ensure that meta tags are preserved during the XML to HTML transformation.
    2. Update the sitemap-core.php File:
      Add the line $allowedposttags['meta'] = $allowed_atts; to support meta tags in the HTML output. You can add this line in the part of the code that processes HTML. Here is how to do it:
       // Add this line to your code in sitemap-core.php
       $allowedposttags['meta'] = $allowed_atts;

    This change will allow wp_kses to handle meta tags and include them in the final HTML output.

    Additional Information:

    Add this [] array to core

    $allowedposttags['meta'] = array(
    'name' => array(),
    'content' => array(),
    'http-equiv' => array(),
    );

    Ensure that these changes are applied and that the HTML version of the sitemap now includes the meta tags. This will help prevent errors during checks by search engines like Bing.

    Thread Starter Marcus Karlos

    (@power2009)

    Please add to to filter

    // This Allow Lang Tag from XSL
    $allowedposttags['html'] = array(
    'lang' => array(),
    );
        <html xmlns="https://www.w3.org/1999/xhtml" lang="en">
            <head>
                <title>XML Sitemap</title>
                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                  <meta name="description" content="This file was dynamically generated using the WordPress content management system and XML Sitemap Generator for Google by Auctollo." />

    This will be resolved BING

    WARNING : Meta Language tag missing

    What is the issue about?

    The page is missing meta language information. The Meta Language information is used as a hint to help us understand the intended language and country/region the page content applies to. This can help if your site is not hosted in the country/region. Use the “content-language” meta tag to embed the culture code in the <head> section of your page. For example, <meta http-equiv=’content-language’ content=’en-gb’> indicates that the page is in English and intended for the the United Kingdom. Alternatively, you can use <html lang=’en-gb’> or <title lang=’en-gb’ />.

    THIS IS FIXED VERSION WITH ALL FIXES: XSL + Core.php

    Download 4.1.21 Fixed: https://www.transfernow.net/dl/20240807XoPXNMYs

    VirusTotal: https://www.virustotal.com/gui/file/b3e298962ffd5db0aad4c05368f63ccf352ba6c8b6de7547784026378a6b0f19?nocache=1

    Changes

            $allowedposttags['meta'] = array(
                'name' => array(),
                'content' => array(),
                'http-equiv' => array(),
            );
            $allowedposttags['html'] = array(
                'lang' => array(),
            );

    XSL

    <html xmlns="https://www.w3.org/1999/xhtml" lang="en"> and <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <meta name="description" content="This file was dynamically generated using the WordPress content management system and XML Sitemap Generator for Google by Auctollo." /><html xmlns="https://www.w3.org/1999/xhtml" lang="en"> and
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.