This Solution is about how to avoid duplicate urls on xml sitemap video wordpress. The problem is when we’ve multiple videos on the same post, I’m using this plugin Google XML Sitemap for Videos and it’s great but it’s generating multiple entries with the same url and google is detecting these errors.

To avoid that we need to edit (2 steps) this plugin and add these lines:

1-.

Search:

$xml .= ‘< ?xml-stylesheet type=”text/xsl” href=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-content/plugins/xml-sitemaps-for-videos/video-sitemap.xsl”?>’ . “\n” ;
$xml .= ” . “\n”;

$videos = array();

 

Add:

$permalink_array = array();

 

Finally:

$xml .= ‘< ?xml-stylesheet type=”text/xsl” href=”‘ . get_bloginfo(‘wpurl’) . ‘/wp-content/plugins/xml-sitemaps-for-videos/video-sitemap.xsl”?>’ . “\n” ;
$xml .= ” . “\n”;

$videos = array();
$permalink_array = array();

 

2-.

Search:

$id = $match [2];
$fix = $c++==0?”:’ [Video '. $c .'] ‘;

if (in_array($id, $videos))
continue;

 

Add:

if (array_key_exists($permalink,$permalink_array))
continue;

$permalink_array[$permalink];

 

Finally:

$id = $match [2];
$fix = $c++==0?”:’ [Video '. $c .'] ‘;

if (in_array($id, $videos))
continue;

if (array_key_exists($permalink,$permalink_array))
continue;

$permalink_array[$permalink];

 

 

We need to save and re-generate our video sitemap and that’s it!

With this solution we will only have unique urls in our video sitemap.


Estos días he estado investigando sobre el mejor robots.txt para WordPress y mejorar en Google Panda Update. Y es que a día de hoy tenemos que evitar cualquier contenido duplicado sino Google nos puede penalizar.

Podéis ver el mio en:

http://helektron.com/robots.txt

El contenido es el siguiente:

Sitemap: http://helektron.com/sitemap.xml.gz

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: */trackback/
Disallow: */feed/
Disallow: */comments/
Disallow: /*?*
Disallow: /*?
Disallow: /tag/*

User-agent: Mediapartners-Google
Disallow:

User-agent: Googlebot
Disallow:

User-agent: Adsbot-Google
Disallow:

User-agent: Googlebot-Image
Disallow:

User-agent: Googlebot-Mobile
Disallow:

Depende mucho de la estructura que tengáis en vuestro blog y lo que consideréis indexable. Para mi, solo los post y las categorías, siendo estas últimas contenido relevante.
¿Vosotros como lo veis?


Si queréis editar páginas en Google + plus, tendremos que ir a la página de nuestro perfil y luego nos aparecerá un desplegable al lado de nuestro nombre donde si pinchamos veremos un desplegable con las páginas que tenemos creadas. Luego ya dentro tenemos la opción de editarla como queramos.

editar pagina google plus Editar páginas en Google + plus

Editar páginas en Google + plus


Si queremos crear una página en Google + plus, lo podemos hacer desde esta página.

Crear una página de Google  300x158 Crear una página en Google + plus

Crear una página en Google + plus



Página 1 de 4912345102030Última »