hreflang not working in new version??
« on: January 30, 2015, 04:39:50 PM »
Has anyone had issues with the hreflang not showing up in the new sitemap generator?  I have tried this 3 or 4 separate times and am not getting any hreflang references in my sitemaps.  This is somewhat critical as our business as 4 languages and I suspect we are getting google webmaster tools errors because of sitemap inconsistencies.

Below is my config file:

<xmlsitemaps_settings>
   <option name="xs_inc_skip">\.(xml|pdf|doc|eps|ps|txt|rtf|ppt|xls|rss)</option>
   <option name="xs_exc_skip">\.(divx|flv|zip|m4a|m4v|rar|tar|bz2|tgz|exe|gif|tif|jpg|png|class|jar|mpeg|mpg|mp3|wav|mp4|avi|wmv|gz|mov|mid|ra|ram|css)</option>
   <option name="xs_proto_skip">(\#|tel:|mms:|skype:|mailto:|javascript:|ftp:|news:|aim:)</option>
   <option name="xs_exec_time">0</option>
   <option name="xs_initurl">[ External links are visible to forum administrators only ]</option>
   <option name="xs_freq">daily</option>
   <option name="xs_lastmod">1</option>
   <option name="xs_priority">1.0</option>
   <option name="xs_descpriority">0.8</option>
   <option name="xs_autopriority">1</option>
   <option name="xs_smname">/home/www/example/sitemap.xml</option>
   <option name="xs_smurl">[ External links are visible to forum administrators only ]</option>
   <option name="xs_webinfo">1</option>
   <option name="xs_imgfilename">sitemap_images.xml</option>
   <option name="xs_mobilefilename">sitemap_mobile.xml</option>
   <option name="xs_videofilename">sitemap_video.xml</option>
   <option name="xs_video_extract">1</option>
   <option name="xs_newsfilename">sitemap_news.xml</option>
   <option name="xs_newstitle">Your Title</option>
   <option name="xs_newsage">2</option>
   <option name="xs_newslang">en</option>
   <option name="xs_rssfilename">feed_rss.xml</option>
   <option name="xs_rsstitle">My Feed</option>
   <option name="xs_rssage">30</option>
   <option name="xs_gping">1</option>
   <option name="xs_makehtml">0</option>
   <option name="xs_maketxt">1</option>
   <option name="xs_savestate_time">30</option>
   <option name="xs_sm_size">40000</option>
   <option name="xs_sm_filesize">10</option>
   <option name="xs_robotstxt">1</option>
   <option name="xs_dumptype"></option>
   <option name="xs_cleanpar">PHPSESSID|sid|osCsid</option>
   <option name="xs_chlogorder">asc</option>
   <option name="xs_exclude_check">1</option>
   <option name="xs_dateformat">Y, F j</option>
   <option name="xs_allow_httpcode">200</option>
   <option name="xs_weblog_ping">[ External links are visible to forum administrators only ]</option>
   <option name="xs_purgelogs">30</option>
   <option name="xs_htmlpart">1000</option>
   <option name="xs_max_depth">150</option>
   <option name="xs_memlimit">512</option>
   <option name="xs_maxref">2</option>
   <option name="xs_progupdate">20</option>
   <option name="xs_checkver">1</option>
   <option name="xs_ext_skip">/embed|/share|/like\.php</option>
   <option name="xs_ext_max">1000</option>
   <option name="xs_chlog_list_max">1000</option>
   <option name="xs_http_language">en-us,en;q=0.5</option>
   <option name="xs_ror_max">50000</option>
   <option name="xs_newsinfo_max">20000</option>
   <option name="xs_rssinfo_max">20000</option>
   <option name="xs_ref_list_max">20000</option>
   <option name="xs_htmlname">/home/www/example/generator/data/sitemap.html</option>
   <option name="xs_notconfigured">0</option>
   <option name="xs_lastmodtime">2014-12-18 22:13:15</option>
   <option name="xs_max_pages"></option>
   <option name="xs_delay_req">200</option>
   <option name="xs_delay_ms">1</option>
   <option name="xs_yping"></option>
   <option name="xs_excl_urls"></option>
   <option name="xs_incl_urls"></option>
   <option name="xs_incl_only"></option>
   <option name="xs_parse_only"></option>
   <option name="xs_ind_attr"></option>
   <option name="xs_email"></option>
   <option name="xs_chlog">0</option>
   <option name="xs_extlinks">0</option>
   <option name="xs_extlinks_excl"></option>
   <option name="xs_makeror">0</option>
   <option name="xs_htmlsort">0</option>
   <option name="xs_htmlstruct">0</option>
   <option name="xs_makemob">0</option>
   <option name="xs_autoresume"></option>
   <option name="xs_no_cookies">0</option>
   <option name="xs_compress">0</option>
   <option name="xs_usecurl">0</option>
   <option name="xs_memsave">0</option>
   <option name="xs_ipconnection"></option>
   <option name="xs_angroups"></option>
   <option name="xs_moreurls"></option>
   <option name="xs_allow_subdomains">0</option>
   <option name="xs_metadesc">0</option>
   <option name="xs_canonical">1</option>
   <option name="xs_disable_xsl">0</option>
   <option name="xs_nobrand">0</option>
   <option name="xs_utf8">0</option>
   <option name="xs_inc_ajax">0</option>
   <option name="xs_lastmod_notparsed">0</option>
   <option name="xs_debug">0</option>
   <option name="xs_noincl_urls"></option>
   <option name="xs_ref_list_store"></option>
   <option name="xs_hreflang">1</option>
   <option name="xs_alt_lang">[ External links are visible to forum administrators only ]
de [ External links are visible to forum administrators only ]
es  [ External links are visible to forum administrators only ]
pt-br  [ External links are visible to forum administrators only ]
pt [ External links are visible to forum administrators only ]</option>
</xmlsitemaps_settings>
Re: hreflang not working in new version??
« Reply #1 on: January 30, 2015, 05:09:53 PM »
Specifically, what google says here I'm not seeing in my sitemaps.

[ External links are visible to forum administrators only ]
Re: hreflang not working in new version??
« Reply #2 on: January 30, 2015, 10:02:31 PM »
What I think I'm looking for is something like this...from link on google that didn't display earlier:

Use a sitemap to indicate alternate language pages

If your site targets users in many languages and, optionally, countries, you can use Sitemaps to provide Google with rel="alternate" hreflang="x". These attributes help Google serve the correct language or regional URL to searchers.

Imagine you have an English language page, targeted at English speakers worldwide. You also have equivalent versions of this page targeted at German speakers worldwide, and German speakers located in Switzerland. Your full set of URLs is:

[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]
The following Sitemap tells Google that the [ External links are visible to forum administrators only ] page has equivalent pages targeting worldwide German-speaking users  ([ External links are visible to forum administrators only ]) and Switzerland ([ External links are visible to forum administrators only ]).

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
  xmlns:xhtml="[ External links are visible to forum administrators only ]">
  <url>
    <loc>[ External links are visible to forum administrators only ]</loc>
    <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="[ External links are visible to forum administrators only ]"
                 />
    <xhtml:link
                 rel="alternate"
                 hreflang="de-ch"
                 href="[ External links are visible to forum administrators only ]"
                 />
    <xhtml:link
                 rel="alternate"
                 hreflang="en"
                 href="[ External links are visible to forum administrators only ]"
                 />
  </url>
 
  <url>
    <loc>[ External links are visible to forum administrators only ]</loc>
    <xhtml:link
                 rel="alternate"
                 hreflang="en"
                 href="[ External links are visible to forum administrators only ]"
                 />
     <xhtml:link
                 rel="alternate"
                 hreflang="de-ch"
                 href="[ External links are visible to forum administrators only ]"
                 />
     <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="[ External links are visible to forum administrators only ]"
                 />
  </url>
 
  <url>
    <loc>[ External links are visible to forum administrators only ]</loc>
     <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="[ External links are visible to forum administrators only ]"
                 />
     <xhtml:link
                 rel="alternate"
                 hreflang="en"
                 href="[ External links are visible to forum administrators only ]"
                 />
<xhtml:link
                 rel="alternate"
                 hreflang="de-ch"
                 href="[ External links are visible to forum administrators only ]"
                 />
  </url>
 
</urlset>

Re: hreflang not working in new version??
« Reply #3 on: January 31, 2015, 07:21:08 AM »
Hello,

can you please replace single quotes in hreflang meta tag with double quotes?
i.e. replace:
<link rel='alternate' hreflang='pt-br' href='[ External links are visible to logged in users only ]' />

with:
<link rel="alternate" hreflang="pt-br" href="[ External links are visible to logged in users only ]" />