<?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>Wed, 25 Jan 2012 11:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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 [...]]]></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="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showPlainTxt('php-5'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> is_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;meta name=<span style="color:#FF0000;">"description"</span> content=<span style="color:#FF0000;">"&lt;?php echo tag_description() ?&gt;"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>en categorías:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> is_category<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;meta name=<span style="color:#FF0000;">"description"</span> content=<span style="color:#FF0000;">"&lt;?php echo category_description() ?&gt;"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">endif</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<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="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;meta name=<span style="color:#FF0000;">"description"</span> content=<span style="color:#FF0000;">"&lt;p&gt;descripcion&lt;/p&gt;"</span> /&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<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="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">remove_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'term_description'</span>,<span style="color:#FF0000;">'wpautop'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<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 "plugin seo" 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>6</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 "WordPress bla bla traerá bla bla cosa", pero esta noticia para mí no es una más, sino que algo que estuve esperando -y que se me ocurrió- hace mucho, se [...]]]></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 "WordPress bla bla traerá bla bla cosa", 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 "un avance" <a href="http://codex.wordpress.org/Template_Tags/tag_description">en el Codex</a>.</p>
<p>Vía - <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>

