Fixing newsRenderer
-
Google Search Console is telling me News xml lack of some tags and others are misplaced. I’ve fixed, can you added to the next release along with changes to create all fields in database as recommended in other support post?
echo '<url>' ; echo '<loc>' . htmlspecialchars($url->location) . '</loc>'; echo '<news:news>'; echo '<news:publication>'; echo '<news:name>' . $siteName . '</news:name>'; echo '<news:language>' . substr( get_bloginfo ( 'language' ), 0, 2 ) . '</news:language>'; echo '</news:publication>'; echo '<news:publication_date>' . date('Y-m-d\TH:i:s+00:00', $url->modified) . '</news:publication_date>'; echo '<news:title>' . $url->title . '</news:title>'; echo '</news:news>';
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fixing newsRenderer’ is closed to new replies.