add_action('wp_head', function () {
  if (!is_single()) return;
  global $post;
  $cats  = get_the_category($post->ID);
  $words = count(preg_split('/\s+/u', trim(wp_strip_all_tags($post->post_content))));
  $data = array(
    'article_id'       => $post->ID,
    'article_category' => $cats ? $cats[0]->name : '',
    'article_author'   => get_the_author_meta('display_name', $post->post_author),
    'publish_date'     => get_the_date('Y-m-d', $post),
    'word_count'       => $words,
  );
  echo '<script>window.dataLayer=window.dataLayer||[];dataLayer.push(' . wp_json_encode($data) . ');</script>';
}, 1);<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/wp-content/plugins/xml-sitemap-feed/assets/sitemap.xsl?ver=5.7.7"?>
<!-- generated-on="2026-07-30T20:28:52+00:00" -->
<!-- generator="XML Sitemap & Google News for WordPress" -->
<!-- generator-url="https://status301.net/wordpress-plugins/xml-sitemap-feed/" -->
<!-- generator-version="5.7.7" -->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://www.ukrainianinpoland.pl/sitemap-posttype-post.xml</loc><lastmod>2026-07-30T17:19:10+02:00</lastmod></sitemap>
<sitemap><loc>https://www.ukrainianinpoland.pl/sitemap-posttype-page.xml</loc><lastmod>2026-03-18T16:42:45+01:00</lastmod></sitemap>
<sitemap><loc>https://www.ukrainianinpoland.pl/sitemap-taxonomy-category.xml</loc><lastmod>2026-07-28T16:46:05+02:00</lastmod></sitemap>
<sitemap><loc>https://www.ukrainianinpoland.pl/sitemap-news.xml</loc><lastmod>2026-07-28T16:46:05+02:00</lastmod></sitemap>
</sitemapindex>
