<?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; Nofollow</title>
	<atom:link href="http://wordpress-hacks.com/tag/nofollow/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, 30 Mar 2012 10:59:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Agregarle Nofollow al &#8220;leer mas&#8221; o &#8220;read more&#8221;</title>
		<link>http://wordpress-hacks.com/agregarle-nofollow-al-leer-mas-o-read-more.php</link>
		<comments>http://wordpress-hacks.com/agregarle-nofollow-al-leer-mas-o-read-more.php#comments</comments>
		<pubDate>Thu, 04 Jun 2009 00:10:48 +0000</pubDate>
		<dc:creator>Neri Aispuro</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Leer Mas]]></category>
		<category><![CDATA[Nofollow]]></category>
		<category><![CDATA[Read More]]></category>

		<guid isPermaLink="false">http://wordpress-hacks.com/?p=330</guid>
		<description><![CDATA[El leer más se usa para "cortar" el artículo, generalmente para que no aparesca el post entero en el feed y así obligar motivar al lector a entrar al sitio. A mí no me gusta y no lo uso, solo lo uso en casos de ser posts largos con muchas imagenes para no recargar la home del sitio, o en el caso de este blog, antes de poner código por que si no sale mal en la home. Volviendo al tema del leer más, no sirve para nada que el enlace a leer el artículo completo sea válido, ya que [...]]]></description>
			<content:encoded><![CDATA[<p>El leer más se usa para "cortar" el artículo, generalmente para que no aparesca el post entero en el feed y así <del datetime="2009-06-03T23:45:42+00:00">obligar</del> motivar al lector a entrar al sitio.</p>
<p>A mí <strong>no me gusta</strong> y no lo uso, solo lo uso en casos de ser posts largos con muchas imagenes para no recargar la home del sitio, o en el caso de este blog, antes de poner código por que si no sale mal en la home.</p>
<p>Volviendo al tema del leer más, no sirve para nada que el enlace a leer el artículo completo sea válido, ya que lleva a algo así como http://dominio.tld/url-del-post/#more-número de id del post.</p>
<p>Acá se me ocurren dos cosas para hacer, una como dije es, <strong>agregarle nofollow</strong>, y otra, <strong>cambiar el "leer mas" por el título del artículo</strong> y el permalink del mismo y así generar un enlace con el anchor text del título.Cada uno tendrá sus preferencias sobre que hacer.</p>
<h4>Para agregar nofollow:</h4>
<p>1. Buscamos el archivo post-template.php que está en /wp-includes<br />
2. Vamos a la linea 221 que dice lo siguiente:</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:#0000FF;">$output</span> .= <span style="color:#FF0000;">' &lt;a href=&quot;'</span>. get_permalink<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">"#more-$id<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>more-link<span style="color:#000099; font-weight:bold;">\"</span>&gt;$more_link_text&lt;/a&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lo reemplazamos por:</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:#0000FF;">$output</span> .= <span style="color:#FF0000;">' &lt;a rel=&quot;nofollow&quot; href=&quot;'</span>. get_permalink<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">"#more-$id<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>more-link<span style="color:#000099; font-weight:bold;">\"</span>&gt;$more_link_text&lt;/a&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h4>Para que, en vez de mostrar un leer mas con nofollow, agregue el título del post con su permalink correspondiente:</h4>
<p>1. Buscamos el archivo post-template.php que está en /wp-includes<br />
2. Vamos a la linea 221, al igual que antes y reemplazamos lo siguiente:</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;"><span style="color:#0000FF;">$output</span> .= <span style="color:#FF0000;">' &lt;a href=&quot;'</span>. get_permalink<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">"#more-$id<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>more-link<span style="color:#000099; font-weight:bold;">\"</span>&gt;$more_link_text&lt;/a&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Por esto:</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;"><span style="color:#0000FF;">$output</span> .= <span style="color:#FF0000;">' &lt;a href=&quot;'</span>. get_permalink<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">"<span style="color:#000099; font-weight:bold;">\"</span> class=<span style="color:#000099; font-weight:bold;">\"</span>more-link<span style="color:#000099; font-weight:bold;">\"</span>&gt;$more_link_text&lt;/a&gt;"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Creo que está de más <del datetime="2009-06-03T23:54:19+00:00">decir</del> escribir que hagan un backup del archivito antes de modificarlo.</p>
<p>Cualquier cosa avisan en los comentarios y vemos como solucionamos <img src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-hacks.com/agregarle-nofollow-al-leer-mas-o-read-more.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>NoFollow, NoIndex, NoArchive y mas desde el Header</title>
		<link>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php</link>
		<comments>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php#comments</comments>
		<pubDate>Mon, 26 Jan 2009 13:45:55 +0000</pubDate>
		<dc:creator>Neri Aispuro</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Meta Tags]]></category>
		<category><![CDATA[Noarchive]]></category>
		<category><![CDATA[Nofollow]]></category>
		<category><![CDATA[Noindex]]></category>

		<guid isPermaLink="false">http://wordpress-hacks.com/?p=136</guid>
		<description><![CDATA[Muchos de ustedes conoceran las instrucciones para que los motores de busqueda Google no indexe, ni archive, y no siga los enlaces; Nofollow, Noindex y Noarchive. El atributo Nofollow es el que va cuando no queremos darle importancia a un enlace, ejemplo es de los feeds &#60;a rel="nofollow" href="http://wordpress-hacks.com/feed"&#62;Feed con NoFollow&#60;/a&#62;. Mientras que el Noindex es un meta tag, que dice que no se indexe la pagina en cuestion, un ejemplo, son las paginas de contacto, o sitemaps, etc. Ejemplo:  Politicas de Privacidad &#60;meta name="robots" content="noindex" /&#62; [/php] El Meta tag Noarchive, dice a google que no queremos que se [...]]]></description>
			<content:encoded><![CDATA[<p>Muchos de ustedes conoceran las instrucciones para que <del datetime="2009-01-26T14:08:13+00:00">los motores de busqueda</del> Google no indexe, ni archive, y no siga los enlaces; Nofollow, Noindex y Noarchive.</p>
<p><center><a href="http://flickr.com/photos/matsiltala"><img src="http://wordpress-hacks.com/wp-content/uploads/2009/01/meta-tags.jpg" alt="meta tags" title="meta tags" width="200" height="261" /></a></center></p>
<p>El atributo <strong>Nofollow</strong> es el que va cuando no queremos darle importancia a un enlace, ejemplo es de los feeds &lt;a rel="nofollow" href="http://wordpress-hacks.com/feed"&gt;Feed con NoFollow&lt;/a&gt;.</p>
<p>Mientras que el <strong>Noindex</strong> es un meta tag, que dice que no se indexe la pagina en cuestion, un ejemplo, son las paginas de contacto, o sitemaps, etc.</p>
<p>Ejemplo:  <a rel="nofollow" href="http://wordpress-hacks.com/politica-de-privacidad">Politicas de Privacidad</a></p>
<pre id="line76">&lt;<span class="start-tag">meta</span><span class="attribute-name"> name</span>=<span class="attribute-value">"robots" </span><span class="attribute-name">content</span>=<span class="attribute-value">"noindex" </span><span class="error"><span class="attribute-name">/&gt;<br />
</span></span>[/php]<br />
El Meta tag <strong>Noarchive</strong>, dice a google que no queremos que se guarde una copia de la pagina en la cache del buscador.<br />
Se usa, al igual que como se usa el Noindex;</p>
<pre id="line76">&lt;<span class="start-tag">meta</span><span class="attribute-name"> name</span>=<span class="attribute-value">"robots" </span><span class="attribute-name">content</span>=<span class="attribute-value">"noarchive" </span><span class="error"><span class="attribute-name">/&gt;<br />
</span></span>[/php]</p>
<p>Los que usamos WordPress, para no andar agregando los meta tags a las paginas y/o articulos que desarrollamos, podemos configurar desde el header para que no se indexe lo que no queremos.</p>
<p>Por ejemplo, si no queremos que se indexen las busquedas, podemos poner:</p>
<div class="igBar"><span id="lphp-15"><a href="#" onclick="javascript:showPlainTxt('php-15'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-15">
<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_search<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>O los errores 404, el archivo de autor, los meses, o mas.<br />
Algunos ejemplos adicionales:</p>
<p>Error 404:</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showPlainTxt('php-16'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-16">
<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_404<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Archivo de autor:</p>
<div class="igBar"><span id="lphp-17"><a href="#" onclick="javascript:showPlainTxt('php-17'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-17">
<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_author<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Fechas:</p>
<div class="igBar"><span id="lphp-18"><a href="#" onclick="javascript:showPlainTxt('php-18'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-18">
<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_month<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tags:</p>
<div class="igBar"><span id="lphp-19"><a href="#" onclick="javascript:showPlainTxt('php-19'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-19">
<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Todos Juntos:</p>
<div class="igBar"><span id="lphp-20"><a href="#" onclick="javascript:showPlainTxt('php-20'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-20">
<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_search<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_404<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_month<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_author<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:#006600; font-weight:bold;">&#123;</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; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</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:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>No lo he visto en ningun lado este tip, lo encontre un dia modificando un theme <img src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

