<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>WordPress Hacks &#187; Tags Descriptions</title> <atom:link href="http://wordpress-hacks.com/tag/tags-descriptions/feed" rel="self" type="application/rss+xml" /><link>http://wordpress-hacks.com</link> <description>Tips y consejos de WordPress en español</description> <lastBuildDate>Fri, 23 Jul 2010 11:36:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Metas descripciones en tags y categorías sin plugins</title><link>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php</link> <comments>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php#comments</comments> <pubDate>Mon, 14 Dec 2009 19:15:38 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Hacks]]></category> <category><![CDATA[Meta Tags]]></category> <category><![CDATA[Tags Descriptions]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=513</guid> <description><![CDATA[La meta tag description es una de las más importantes a la hora de hacer seo on page en un sitio, si tenemos categorías y tags que sean relevantes seguro podrán aprovechar este artículo. Desconozco si algún plugin para optimización seo tiene implementado las descripciones en las tags, ya que desde la versión 2.8 de [...]]]></description> <content:encoded><![CDATA[<p>La <a
href="http://www.google.com/support/webmasters/bin/answer.py?hl=es&amp;answer=79812">meta tag description</a> es una de las más importantes a la hora de hacer <a
href="http://blog.ikhuerta.com/bases-del-seo-onpage">seo on page</a> en un sitio, si tenemos categorías y tags que sean relevantes seguro podrán aprovechar este artículo.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/meta_tags-300x242.jpg" alt="meta tags" title="meta tags" width="300" height="242" class="aligncenter size-medium wp-image-515" /></div><p>Desconozco si algún plugin para optimización seo tiene implementado las descripciones en las tags, ya que desde la <a
href="http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php">versión 2.8 de WordPress</a> se pueden agregar, pero probablemente si.</p><p>Ayer estuve gran parte de la tarde buscando el mejor código para hacer esto y me decidí por el siguiente:</p><p>Para llamar las descripciones en tags:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_tag<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> tag_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>en categorías:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> category_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>Este código obviamente va en el header antes de /head.</p><p>El problema que tenía era que me quedaban las descripciones con un &lt;p&gt; y &lt;/p&gt; , por ejemplo quedaba:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>meta name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;p&gt;descripcion&lt;/p&gt;&quot;</span> <span style="color: #339933;">/&gt;</span></pre></td></tr></table></div><p>Anduve buscando por un rato y encontré algo que realmente desconocía, la <a
href="http://codex.wordpress.org/Function_Reference/wpautop">función wpautop</a>, fuí al <a
href="http://ma.tt/scripts/autop/">blog de Matt</a> y entendí un poco más.</p><p>Al rato encontré en el foro de Wp <a
href="http://wordpress.org/support/topic/137008#post-625941">la solución</a> a mi problema.</p><p>Hay que agregar la siguiente línea en el <strong>functions.php</strong> del theme en uso:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'term_description'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'wpautop'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Para los desprevenidos que se pregunten donde agregar las descripciones a los tags y las categorías les respondo que se hacen entrando a la lista de tags o categorías y dándo clic en editar -no en edición rápida- y agregando en el campo descripción lo que queramos mostrar.</p><p><em>Nota:</em> si usan algún &#8220;plugin seo&#8221; chequeen que no les quede duplicada la descripción, la mayoría de los plugins seo que conozco solo agregan la meta tag description a las categorías y no a los tags, si es su caso pueden agregar solo el código para las descripciones de los tags.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Tags Descriptions en WordPress 2.8</title><link>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php</link> <comments>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php#comments</comments> <pubDate>Fri, 08 May 2009 11:59:04 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Tags Descriptions]]></category> <category><![CDATA[WordPress 28]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=210</guid> <description><![CDATA[No suelo comentar noticias ni nada por el estilo porque no me gustan y me resulta cansador leer títulos como &#8220;WordPress bla bla traerá bla bla cosa&#8221;, pero esta noticia para mí no es una más, sino que algo que estuve esperando -y que se me ocurrió- hace mucho, se trata de las descripciones en [...]]]></description> <content:encoded><![CDATA[<p
style="text-align: center;"><img
class="size-full wp-image-212 aligncenter" title="WordPress" src="http://wordpress-hacks.com/wp-content/uploads/2009/05/wp1.jpg" alt="WordPress" width="490" height="200" /></p><p>No suelo comentar noticias ni nada por el estilo porque <strong>no me gustan</strong> y me resulta cansador leer títulos como &#8220;WordPress bla bla traerá bla bla cosa&#8221;, pero esta noticia para mí no es una más, sino que algo que estuve esperando -y que se me ocurrió- hace mucho, se trata de las <strong>descripciones en las Tags</strong> por defecto en Wp, algo como lo que Wp viene haciendo ya hace mucho con las categorías, eso es muy importante para el <a
title="WordPress SEO" href="http://wordpress-hacks.com/?s=Seo+en+WordPress">Seo en WordPress</a>, y mucho mas interesante resulta viniendo de las tags.<br
/> Se puede ver &#8220;un avance&#8221; <a
href="http://codex.wordpress.org/Template_Tags/tag_description">en el Codex</a>.</p><p>Vía &#8211; <a
href="http://justintadlock.com/archives/2009/04/30/tag-descriptions-in-wordpress-28">El blog de Justin</a><br
/> ¿Opiniones?</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 5/11 queries in 0.038 seconds using disk

Served from: wordpress-hacks.com @ 2010-07-31 22:23:17 -->