<?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>Planeta WordPress &#187; Experto</title>
	<atom:link href="http://planetawordpress.org/tag/experto/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetawordpress.org</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 23:43:47 +0000</lastBuildDate>
	<generator>http://weblog.mx/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Acorta los títulos</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 17:14:15 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[código]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[Magazine]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8319</guid>
		<description><![CDATA[
Si usas un tema abigarrado, de esos que están tan de moda últimamente, los de estilo revista (o magazine) seguramente te hayas dado de bruces más de una vez con el problema de la limitación de los títulos, pues tienes que controlarte o se descuadrará tu tema, no se verán bien los títulos y cualquier [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayudawordpress.com/wp-content/uploads/2010/07/acortar.jpg" alt="" title="acortar" width="470" height="353" class="aligncenter size-full wp-image-8320" /></p>
<p>Si usas un tema abigarrado, de esos que están tan de moda últimamente, los de estilo revista (o magazine) seguramente te hayas dado de bruces más de una vez con el problema de <strong>la limitación de los títulos</strong>, pues tienes que controlarte o se descuadrará tu tema, no se verán bien los títulos y cualquier otro desastre estético.</p>
<p>Afortunadamente <a href="http://bavotasan.com/tutorials/shorten-your-post-titles-in-wordpress/">todo tiene solución</a> en WordPress, y más con un poquito de código. Vamos a ver como hacerlo en solo 2 pasos … <br />
<span id="more-8319"></span></p>
<h3>1. Añadiendo la función</h3>
<p>Para empezar abrimos el fichero <code>functions.php</code> de tu tema y añadimos uno de los siguientes códigos:</p>
<h4>Acortar títulos por palabras</h4>
<div class="igBar"><span id="lphp-5"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/#" onclick="javascript:showCodeTxt('php-5'); return false;">Clic para 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:#FF9933; font-style:italic;">//Acortando títulos por palabras</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> titulo_corto<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$after</span> = <span style="color:#FF0000;">''</span>, <span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/explode"><span style="color:#000066;">explode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">' '</span>, get_the_title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/count"><span style="color:#000066;">count</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;=<span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_pop"><span style="color:#000066;">array_pop</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/implode"><span style="color:#000066;">implode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">" "</span>,<span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>. <span style="color:#0000FF;">$after</span>;</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;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/implode"><span style="color:#000066;">implode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">" "</span>,<span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$mytitle</span>;</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:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h4>Acortar títulos por caracteres</h4>
<div class="igBar"><span id="lphp-6"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/#" onclick="javascript:showCodeTxt('php-6'); return false;">Clic para 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:#FF9933; font-style:italic;">//Acortando títulos por caracteres</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> titulo_corto<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$after</span> = <span style="color:#000000; font-weight:bold;">null</span>, <span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = get_the_title<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$size</span> = <a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$size</span>&gt;<span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$mytitle</span>, <span style="color:#CC66CC;color:#800000;">0</span>, <span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/explode"><span style="color:#000066;">explode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">' '</span>,<span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_pop"><span style="color:#000066;">array_pop</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$mytitle</span> = <a href="http://www.php.net/implode"><span style="color:#000066;">implode</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">" "</span>,<span style="color:#0000FF;">$mytitle</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#0000FF;">$after</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$mytitle</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Guardas los cambios en el fichero.</p>
<h3>2. Modificando el <code>loop</code></h3>
<p>Una vez elegido el tipo de acortamiento, con uno de los códigos anteriores, solo nos queda sustituir el código de impresión de los títulos en - normalmente - <code>index.php</code>. Buscamos algo similar a este código …</p>
<div class="igBar"><span id="lphp-7"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/#" onclick="javascript:showCodeTxt('php-7'); return false;">Clic para 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;h2 <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"title"</span>&gt;&lt;a href=<span style="color:#FF0000;">"&lt;?php the_permalink() ?&gt;"</span> rel=<span style="color:#FF0000;">"bookmark"</span> title=<span style="color:#FF0000;">"&lt;?php the_title(); ?&gt;"</span>&gt;?php <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> titulo_corto<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'...'</span>, <span style="color:#CC66CC;color:#800000;">12</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h2&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>y lo sustituimos por este otro:</p>
<div class="igBar"><span id="lphp-8"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/#" onclick="javascript:showCodeTxt('php-8'); return false;">Clic para 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;">&lt;h2 <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"title"</span>&gt;&lt;a href=<span style="color:#FF0000;">"&lt;?php the_permalink() ?&gt;"</span> rel=<span style="color:#FF0000;">"bookmark"</span> title=<span style="color:#FF0000;">"&lt;?php the_title(); ?&gt;"</span>&gt;?php <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> titulo_corto<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'...'</span>, <span style="color:#CC66CC;color:#800000;">12</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h2&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Dependiendo del código elegido te mostrará, en este ejemplo, 12 palabras o 12 caracteres, completando el resto con los socorridos puntos suspensivos <code>'…'</code>. Además, al colocar el cursor sobre el mismo nos mostrará el nombre completo (<code>the_title()</code>), para que no nos perdamos.</p>
<!-- PHP 4.x --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=X29oZFpPodk:COV0eej9mLQ:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=X29oZFpPodk:COV0eej9mLQ:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/X29oZFpPodk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/X29oZFpPodk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiar el tema por defecto en tus sitios sin plugin</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/NIR9JeX2RAo/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/NIR9JeX2RAo/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 20:34:32 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[código]]></category>
		<category><![CDATA[Default]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Instalación]]></category>
		<category><![CDATA[Multisitio]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8315</guid>
		<description><![CDATA[
Si quieres cambiar el tema por defecto, ya sea para una instalación sencilla o para una instalación multisitio de WordPress 3.0, puedes hacerlo gracias a un código poco documentado pero que funciona a la perfección.
Solo tienes que añadir la siguiente línea al fichero wp-config.php del sitio o sitios en los que quieras definir un tema [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2008/09/cambio-theme-wordpress.jpg" title="Cambiar tema wordpress" rel="lightbox[8315]"><img alt="" src="http://ayudawordpress.com/wp-content/uploads/2008/09/cambio-theme-wordpress.jpg" title="Cambiar tema wordpress" class="aligncenter" width="400" height="316" /></a></p>
<p>Si quieres <strong>cambiar el tema por defecto</strong>, ya sea para una instalación sencilla o para una instalación <strong>multisitio de WordPress 3.0</strong>, puedes hacerlo gracias a un <a href="http://wpmututorials.com/how-to/change-the-default-theme-for-sites-without-a-plugin/">código poco documentado</a> pero que funciona a la perfección.</p>
<p>Solo tienes que añadir la siguiente línea al fichero <code>wp-config.php</code> del sitio o sitios en los que quieras definir un tema por defecto:</p>
<div class="igBar"><span id="lphp-10"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/NIR9JeX2RAo/#" onclick="javascript:showCodeTxt('php-10'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<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;"><a href="http://www.php.net/define"><span style="color:#000066;">define</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'WP_DEFAULT_THEME'</span>, <span style="color:#FF0000;">'classic'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lo único que tienes que elegir es el nombre de la carpeta del tema que quieres cargar por defecto, en el ejemplo la carpeta del tema Classic, algo genial para instalaciones nuevas personalizadas.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/downloads/?did=108" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía para Administrar Wordpress</a></p>
<!-- PHP 4.x --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=NIR9JeX2RAo:Nx8tq2mAktg:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=NIR9JeX2RAo:Nx8tq2mAktg:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/NIR9JeX2RAo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/NIR9JeX2RAo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multisitio en WordPress 3.0 a un clic</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/E3FG7pA4G8k/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/E3FG7pA4G8k/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 22:19:18 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Multisitio]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8284</guid>
		<description><![CDATA[
Instalas y activas este plugin
Vas a Ajustes -&#62; Activar multisitio
Rellenas la información que te pide
Haces clic en el botón "Install"
Vuelves a acceder a tu panel de WordPress

  
]]></description>
			<content:encoded><![CDATA[<ol>
<li>Instalas y activas <a href="http://jgwebdevelopment.com/plugins/wordpress-multi-site-enabler-plugin">este plugin</a></li>
<li>Vas a Ajustes -> Activar multisitio</li>
<li>Rellenas la información que te pide</li>
<li>Haces clic en el botón "Install"</li>
<li>Vuelves a acceder a tu panel de WordPress</li>
</ol>
<p> <img src='http://ayudawordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- PHP 4.x --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=E3FG7pA4G8k:1UeNogtC32A:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=E3FG7pA4G8k:1UeNogtC32A:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/E3FG7pA4G8k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/E3FG7pA4G8k/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: crear una barra con los datos del autor</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 22:45:59 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8228</guid>
		<description><![CDATA[
Si nuestro blog es unipersonal, es probable que no nos interese el siguiente tutorial. Pero si tenemos un en blog multipersonal, ya sea con una cantidad determinada de colaboradores  o abierto todo aquel que quiera colaborar (como éste), puede ser una buena idea mostrar de forma dinámica los datos del autor de la entrada actualizados [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a rel="attachment wp-att-8240" href="http://ayudawordpress.com/tutorial-crear-una-barra-con-los-datos-del-autor/hdm4_0001/"><img class="alignnone size-full wp-image-8240" src="http://ayudawordpress.com/wp-content/uploads/2010/07/HDM4_0001.jpg" alt="" width="361" height="271" /></a></p>
<p>Si nuestro blog es unipersonal, es probable que no nos interese el siguiente tutorial. Pero si tenemos un en blog multipersonal, ya sea con una cantidad determinada de colaboradores  o abierto todo aquel que quiera colaborar (como éste), puede ser una buena idea mostrar de forma dinámica los datos del autor de la entrada actualizados al día.</p>
<p>Seguramente existe más de un plugin para realizar esto o algo por el estilo, pero como soy un fanático del hágalo usted mismo les voy a mostrar cómo hacerlo por código utilizando las mismas funciones de Wordpress.<span id="more-8228"></span></p>
<p>Cabe aclarar que más allá del código php y html, seguramente cada uno necesitará adaptar un poco los estilos css a su theme. De todas formas sobre utilizar el theme por defecto de wordpress 2.9.2. La idea por supuesto es que tengan alguna idea de html, php y css, pero sino copiar y pegar el código final también vale. Comencemos entonces con el código:</p>
<p>Creemos primero el div que va a contener todo:</p>
<div class="igBar"><span id="lhtml-25"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('html-25'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-25">
<div class="html">
<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: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--div contenedor --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"author-data"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></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: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Vamos a comenzar mostrando el gravatar del autor. Para eso vamos a utilizar la función "get_avatar()" que recibe el id del usuario y el ancho en pixeles del avatar, y retorna el código html listo para insertar. A su vez para obtener el id del autor usaremos la función "get_the_author_meta()" que nos servirá para obtener casi cualquier información acerca del mismo, recibe como parámetro el dato a recuperar. Una vez obtenido el código lo imprimimos:</p>
<div class="igBar"><span id="lphp-26"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-26'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-26">
<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;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_avatar<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<span style="color:#CC66CC;color:#800000;">80</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora lo segundo seria agregar un título con un enlace al sitio web del autor, para eso utilizaremos la función "the_author_link()" que imprime el nombre publico del autor como link a su sitio.</p>
<div class="igBar"><span id="lhtml-27"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('html-27'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-27">
<div class="html">
<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: #009900;"><a href="http://december.com/html/4/element/h4.html"><span style="color: #000000; font-weight: bold;">&lt;h4&gt;</span></a></span>Acerca de <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>?php the_author_link<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?<span style="color: #000000; font-weight: bold;">&gt;</span></a></span>:<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h4&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Si pensamos en el SEO y preferimos que el enlace sea nofollow (o sea que los bots como el de Google no lo considere). Podriamos hacer lo siguiente:</p>
<div class="igBar"><span id="lphp-28"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-28'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-28">
<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;h4&gt;Acerca de &lt;a rel=<span style="color:#FF0000;">"nofollow"</span> title=<span style="color:#FF0000;">"web del autor"</span> href=<span style="color:#FF0000;">"&lt;?php the_author_meta('user_url'); ?&gt;;"</span> <span style="color:#000000; font-weight:bold;">&lt;?php</span> the_author<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;/h4&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como verán usamos la función "the_author()" que imprime el nombre publico del author y la función "the_author_meta()" para obtener el link de su web.</p>
<p>Ahora utilicemos nuevamente la función "the_author_meta()" pero para obtener su descripción:</p>
<div class="igBar"><span id="lphp-29"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-29'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-29">
<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;p&gt;&lt;?php the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'user_description'</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;">&lt;/p&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Si por cuestiones de diseño quisiéramos recortarla a no mas de una x cantidad de caracteres podemos usar la función "substr()" de php. Recibe la cadena a recortar, el punto de inicio y la cantidad de caracteres. Para recuperar la descripción usamos "get_the_author_meta()", como ya habrán deducido, cuando lo usamos con get_ adelante recuperamos el valor y cuando lo usamos sin el, directamente lo imprimimos. Por ejemplo si quisiéramos recortar la descripción a 140 caracteres:</p>
<div class="igBar"><span id="lphp-30"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-30'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-30">
<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;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></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:#FF9933; font-style:italic;">//Con esto imprimimos los primeros 140 caracteres (a lo twitter) de la descripción</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'user_description'</span><span style="color:#006600; font-weight:bold;">&#41;</span> , <span style="color:#CC66CC;color:#800000;">0</span> , <span style="color:#CC66CC;color:#800000;">140</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/p&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora la idea va a ser mostrar la cantidad de post del autor (una pavada que hacemos con la función "the_author_posts()") pero que a su vez funcione como un link a la pagina con los post del author. Esta página en un blog con permalinks "bonitos" tendría la siguiente forma tu-dominio.com/author/el-autor/. Pero como dependiendo de la configuración, esto puede cambiar, vamos a obtener primero el link a la página con los posts del autor.</p>
<p>Para nuestra tarea vamos a hacer uso de la función "get_author_posts_url()" que recibe el id del autor y devuelve el link que mostramos. Para obtener el id, volvemos a usar la función "get_the_author_meta()":</p>
<div class="igBar"><span id="lphp-31"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-31'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-31">
<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;">get_author_posts_url<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ya el link armado para mostrar todo lo que queríamos queda así:</p>
<div class="igBar"><span id="lphp-32"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-32'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-32">
<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;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ha publicado &lt;a title=<span style="color:#FF0000;">"otros posts del autor"</span> href=<span style="color:#FF0000;">"&lt;?php echo get_author_posts_url(get_the_author_meta('ID')); ?&gt;"</span> &lt;&lt;?php the_author_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> posts &lt;/a&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;">&lt;/p&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para finalizar los datos a mostrar nos queda un detalle mas, los comentarios realizados por el autor. Dado que no existe (o más bien, yo no conozco) una función para obtener directamente la cantidad de comentarios de un autor, vamos a crear una, basándonos en el sql que Fernando me facilito tan amablemente hace un tiempo,que a su vez esta basado en el del plugin wordpress-plugin-nofollow-free:</p>
<div class="igBar"><span id="lphp-33"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-33'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-33">
<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:#FF9933; font-style:italic;">//La idea es que esta función reciba el id del autor y devuelva la cantidad de comentarios que realizó.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> get_the_author_comments<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$author_id</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*Obtenemos algunos datos del autor que vamos a necesitar*/</span></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:#0000FF;">$nick</span> = get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'nickname'</span> , <span style="color:#0000FF;">$author_id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$username</span> = get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'user_login'</span> , <span style="color:#0000FF;">$author_id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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:#0000FF;">$displayname</span> = get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'display_name'</span> , <span style="color:#0000FF;">$author_id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$email</span> = get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#FF0000;">'user_email'</span> , <span style="color:#0000FF;">$author_id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*Usamos el objeto global $wpdb (algo así como una interfaz de wp para acceder a la base de datos)*/</span></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;"><a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$wpdb</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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:#008000;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Armamos un sql para que cuente la cantidad de registros (o sea comentarios) cuando</span></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:#008000;">el id de usuario sea igual que el del autor, o cuando su email coincida con el campo comment_author_email o cuando su nombre de usuario o su nombre publico o su nickname coincidan con el campo comment_author.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span></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:#0000FF;">$sql</span> = <span style="color:#FF0000;">"SELECT COUNT(*) AS contador FROM "</span> . <span style="color:#0000FF;">$wpdb</span>-&amp;gt;comments . <span style="color:#FF0000;">" WHERE "</span> .</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">" user_id = $author_id "</span> .</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:#FF0000;">" or comment_author_email = '$email' "</span> .</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">" or comment_author IN ('"</span> . <span style="color:#0000FF;">$displayname</span> . <span style="color:#FF0000;">"','"</span> . <span style="color:#0000FF;">$username</span> . <span style="color:#FF0000;">"','"</span> . <span style="color:#0000FF;">$nick</span> . <span style="color:#FF0000;">"')"</span>;</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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//retornamos el resultado</span></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:#616100;">return</span>&nbsp; <span style="color:#0000FF;">$wpdb</span>-&amp;gt;get_var<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$sql</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Debido al hecho de que si los comentarios del blog son abiertos al que quiera comentar, nos vamos a encontrar con un mismo usuario que comenta con 2 email y nombres distintos o 2 usuarios que comentan con el mismo nombre; el resultado de la función no siempre va a ser exacto. Pero dentro de todo funciona bastante bien.</p>
<p>Ahora vamos a insertarla en el archivo functions.php de nuestro theme para poder utilizarla. En nuestro código vamos a utilizarla así (insertándola en el mismo párrafo que la de los posts del autor):</p>
<div class="igBar"><span id="lphp-34"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-34'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-34">
<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;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ha publicado &lt;a title=<span style="color:#FF0000;">"otros posts del autor"</span> href=<span style="color:#FF0000;">"&lt;?php echo get_author_posts_url(get_the_author_meta('ID')); ?&gt;"</span>&amp;gt; &amp;lt;?php the_author_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&amp;gt; posts &amp;lt;/a&amp;gt; | Ha realizado <span style="color:#000000; font-weight:bold;">&lt;?php</span> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_the_author_comments<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</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> comentarios</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;">&lt;/p&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Todo nuestro código insertado dentro del div contenedor y puesto en forma de función por una cuestión de practicidad queda así:</p>
<div class="igBar"><span id="lphp-35"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-35'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-35">
<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;!--div contenedor --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div&gt;&lt;?php</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:#FF9933; font-style:italic;">//le pongo show_author_data por ponerle un nombre</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> show_author_data<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;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></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;">&lt;!--div contenedor --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div&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> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_avatar<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<span style="color:#CC66CC;color:#800000;">80</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;">&lt;h4&gt;Acerca de &lt;a rel=<span style="color:#FF0000;">"nofollow"</span> title=<span style="color:#FF0000;">"web del autor"</span> href=<span style="color:#FF0000;">"&lt;?php the_author_meta('user_url'); ?&gt;"</span>&gt;&lt;?php the_author<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h4&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;">&lt;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></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:#FF9933; font-style:italic;">//Con esto imprimimos los primeros 140 caracteres (a lo twitter) de la descripción</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'user_description'</span><span style="color:#006600; font-weight:bold;">&#41;</span> , <span style="color:#CC66CC;color:#800000;">0</span> , <span style="color:#CC66CC;color:#800000;">140</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/p&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;">&lt;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ha publicado &lt;a title=<span style="color:#FF0000;">"otros posts del autor"</span> href=<span style="color:#FF0000;">"&lt;?php echo get_author_posts_url(get_the_author_meta('ID')); ?&gt;"</span>&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> the_author_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> posts &lt;/a&gt; | Ha realizado <span style="color:#000000; font-weight:bold;">&lt;?php</span> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_the_author_comments<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</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> comentarios</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;">&lt;/p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&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>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Si al colocar ambas funciones en su archivo functions.php empiezan a saltarles errores diciendo que las cabeceras no se han podido enviar, lo mas probable es que hayan dejado saltos de línea o espacios por fuera de las etiquetas de php.</p>
<p>Por último vamos a agregar a la hoja de estilos de nuestro theme algunos retoques para embellecer nuestra barrita (por lo menos para que en Kubrick se vea bien):</p>
<div class="igBar"><span id="lcss-36"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('css-36'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-36">
<div class="css">
<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: #cc00cc;">#author-data <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">color</span>: #000000; <span style="color: #808080; font-style: italic;">/* o sea negro */</span></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;">font-size</span>: 14px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>: #cccccc;</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;">width</span>: <span style="color: #cc66cc;color:#800000;">100</span>%;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span>: 10px 0px;</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;">padding</span>: 3px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/*si ponen lo siguiente su css no va a validar */</span></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;">border-radius: 5px; <span style="color: #808080; font-style: italic;">/*para opera*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">moz-border-radius: 5px; <span style="color: #808080; font-style: italic;">/*para firefox */</span></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;">webkit-border-radius: 5px; <span style="color: #808080; font-style: italic;">/*para safari y chrome*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">khtml-border-radius: 5px; <span style="color: #808080; font-style: italic;">/* para konkeror */</span></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;">box-shadow: 2px 2px 5px #000000; <span style="color: #808080; font-style: italic;">/*para opera*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-moz-box-shadow: 2px 2px 5px #000000;<span style="color: #808080; font-style: italic;">/*para firefox*/</span></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;">-webkit-box-shadow: 2px 2px 5px #000000;<span style="color: #808080; font-style: italic;">/*para safari y chrome*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-khtml-box-shadow: 2px 2px 5px #000000;<span style="color: #808080; font-style: italic;">/*para konkeror*/</span></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: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">#author-data <span style="color: #6666ff;">.avatar </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span>: 4px;</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;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#author-data h4 <span style="color: #66cc66;">&#123;</span></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;">font-size</span>: 17px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span>: 3px;</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: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">#author-data p <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">margin</span>: 0px;</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;">padding</span>: 4px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En lo personal inserte la barrita arriba del título (llamando a la función show_author_data), pero cada uno colóquela donde quiera (siempre y cuando sea adentro del bucle).</p>
<p>Mi barrita en Kubrick se ve así (no se ve el gravatar porque al momento de tomar la captura me encuentro offline):</p>
<p style="text-align: center"><a rel="attachment wp-att-8229" href="http://ayudawordpress.com/tutorial-crear-una-barra-con-los-datos-del-autor/trabajo_terminado_en_kubrick/"><img class="alignnone size-medium wp-image-8229" src="http://ayudawordpress.com/wp-content/uploads/2010/07/trabajo_terminado_en_kubrick-500x439.png" alt="" width="500" height="439" /></a></p>
<p>Para que funcione en Twenty Ten (el tema por defecto en wp 3.0) hay que armar una estructura un poco más compleja en cuanto a divs y css:</p>
<div class="igBar"><span id="lphp-37"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('php-37'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-37">
<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;">function</span> show_author_data<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;">&#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;">&lt;!--div contenedor --&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;">&lt;div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div&gt;&lt;?php <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_avatar<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<span style="color:#CC66CC;color:#800000;">80</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/div&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;">&lt;div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;h4&gt;Acerca de &lt;a rel=<span style="color:#FF0000;">"nofollow"</span> title=<span style="color:#FF0000;">"web del autor"</span> href=<span style="color:#FF0000;">"&lt;?php the_author_meta('user_url'); ?&gt;"</span>&gt;&lt;?php the_author<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;/a&gt;&lt;/h4&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;">&lt;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></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:#FF9933; font-style:italic;">//Con esto imprimimos los primeros 140 caracteres (a lo twitter) de la descripción</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span> get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'user_description'</span><span style="color:#006600; font-weight:bold;">&#41;</span> , <span style="color:#CC66CC;color:#800000;">0</span> , <span style="color:#CC66CC;color:#800000;">140</span> <span style="color:#006600; font-weight:bold;">&#41;</span>;</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;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/p&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;">&lt;p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ha publicado &lt;a title=<span style="color:#FF0000;">"otros posts del autor"</span> href=<span style="color:#FF0000;">"&lt;?php echo get_author_posts_url(get_the_author_meta('ID')); ?&gt;"</span>&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> the_author_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> posts &lt;/a&gt; | Ha realizado <span style="color:#000000; font-weight:bold;">&lt;?php</span> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> get_the_author_comments<span style="color:#006600; font-weight:bold;">&#40;</span>get_the_author_meta<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ID'</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> comentarios</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;">&lt;/p&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&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;">&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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>Y los css:</p>
<div class="igBar"><span id="lcode-38"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/#" onclick="javascript:showCodeTxt('code-38'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-38">
<div class="code">
<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;">#author-data <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">color: #000000; <span style="color:#008000;">/* o sea negro */</span></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;">font-size: 14px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background: #cccccc;</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;">margin: 10px <span style="color:#800000;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">padding: 3px;</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;">float: left;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">clear: both;</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;">width: <span style="color:#800000;color:#800000;">100</span>%;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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:#008000;">/*si ponen lo siguiente su css no va a validar */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">border-radius: 5px; <span style="color:#008000;">/*para opera*/</span></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;">moz-border-radius: 5px; <span style="color:#008000;">/*para firefox */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">webkit-border-radius: 5px; <span style="color:#008000;">/*para safari y chrome*/</span></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;">khtml-border-radius: 5px; <span style="color:#008000;">/* para konkeror */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">box-shadow: 2px 2px 5px #000000; <span style="color:#008000;">/*para opera*/</span></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;">-moz-box-shadow: 2px 2px 5px #000000;<span style="color:#008000;">/*para firefox*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-webkit-box-shadow: 2px 2px 5px #000000;<span style="color:#008000;">/*para safari y chrome*/</span></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;">-khtml-box-shadow: 2px 2px 5px #000000;<span style="color:#008000;">/*para konkeror*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#author-data #author-gravatar <span style="color:#006600; font-weight:bold;">&#123;</span></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;">margin: 4px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">float: left;</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;">margin: 4px -104px 4px 4px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#author-data #author-info <span style="color:#006600; font-weight:bold;">&#123;</span></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;">float: left;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin: <span style="color:#800000;color:#800000;">0</span> <span style="color:#800000;color:#800000;">0</span> <span style="color:#800000;color:#800000;">0</span> 104px;</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:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">#author-info h4 <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">font-size: 17px;</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;">margin: 2px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">padding: <span style="color:#800000;color:#800000;">0</span>;</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:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;">#author-info p <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">margin: 2px;</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;">padding: 4px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El resultado es el siguiente:</p>
<p style="text-align: center"><a rel="attachment wp-att-8233" href="http://ayudawordpress.com/tutorial-crear-una-barra-con-los-datos-del-autor/trabajo_terminado_en_twenty_ten-2/"><img class="alignnone size-medium wp-image-8233" src="http://ayudawordpress.com/wp-content/uploads/2010/07/trabajo_terminado_en_twenty_ten1-500x341.png" alt="" width="500" height="341" /></a></p>
<h2>Palabras Finales</h2>
<p>Espero que algún valiente haya llegado hasta acá. La idea del tutorial no era tanto hacer la barrita en si, sino colaborar a que de a poco muchos empiecen a perderle el miedo al código y no sean tan plugin dependientes.</p>
<p>Además tenía tiempo queriendo colaborar con algún post para esta bodega de conocimiento que es AyudaWordpress. Espero les sea útil.</p>
<p>PD: para el que no entendió un pomo pero igual quiere la barrita <a href="http://www.mediafire.com/file/mmutjkknmby/show-author-data.rar" >acá la tiene en forma de plugin</a>(eso si, en versión súper minimalista, no esperen panel de control, opciones, ni nada por el estilo).</p>
<!-- PHP 4.x --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=sGtV7dM3RvY:JOrHjCq2rqY:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=sGtV7dM3RvY:JOrHjCq2rqY:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/sGtV7dM3RvY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/sGtV7dM3RvY/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como añadir imágenes de cabecera a TwentyTen</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 22:56:07 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Cabeceras]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[miniatura]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[TwentyTen]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8192</guid>
		<description><![CDATA[
El nuevo tema por defecto de WordPress desde la versión 3.0 se llama TwentyTen o 2010, y una de sus características es que te permite cambiar la imagen de cabecera eligiendo entre una lista de imágenes predeterminadas o bien subiendo una imagen adicional, pero si quieres, por ejemplo, ofrecer para una instalación nueva una lista [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ayudawordpress.com/wp-content/uploads/2010/07/cabecera-twentyten.png" title="cabecera twentyten" rel="lightbox[8192]"><img src="http://ayudawordpress.com/wp-content/uploads/2010/07/cabecera-twentyten-500x287.png" alt="" title="cabecera twentyten" width="500" height="287" class="aligncenter size-medium wp-image-8195" /></a></p>
<p>El <strong>nuevo tema por defecto</strong> de WordPress desde la versión 3.0 se llama <a href="http://ayudawordpress.com/nuevo-tema-default-wordpress-2010/"><strong>TwentyTen</strong></a> o <strong>2010</strong>, y una de sus características es que te permite cambiar la imagen de cabecera eligiendo entre una lista de imágenes predeterminadas o bien subiendo una imagen adicional, pero si quieres, por ejemplo, ofrecer para una instalación nueva una lista de imágenes distintas entre las que puedan elegir los usuarios, o quieres que la lista de imágenes de cabecera muestre unas de tu propia factura para cambiarlas de vez en cuando o en ocasiones (navidad, festividades, etc) también puedes hacerlo.</p>
<p>En realidad el proceso es muy sencillo, vamos a verlo … </p>
<p><span id="more-8192"></span></p>
<p>Primero abre el fichero <code>functions.php</code> del tema TwentyTen y localiza donde empieza esta sección:</p>
<div class="igBar"><span id="lphp-35"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/#" onclick="javascript:showCodeTxt('php-35'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-35">
<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:#FF9933; font-style:italic;">// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>A partir de ahí verás las "llamadas" a las imágenes por defecto, con su descripción:</p>
<div class="igBar"><span id="lphp-36"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/#" onclick="javascript:showCodeTxt('php-36'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-36">
<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;">register_default_headers<span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘berries’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/berries.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/berries-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Berries’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘cherryblossom’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/cherryblossoms.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/cherryblossoms-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Cherry Blossoms’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘concave’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/concave.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/concave-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Concave’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘fern’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/fern.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/fern-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Fern’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘forestfloor’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/forestfloor.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/forestfloor-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Forest <a href="http://www.php.net/floor"><span style="color:#000066;">Floor</span></a>’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘inkwell’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/inkwell.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/inkwell-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Inkwell’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘path’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/path.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/path-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Path’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘sunset’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/sunset.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/sunset-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Sunset’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘waterfall’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/waterfall.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/waterfall-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Waterfall’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘mountain’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></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;">‘url’ =&gt; ‘%s/images/headers/mountain.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘thumbnail_url’ =&gt; ‘%s/images/headers/mountain-thumbnail.jpg’,</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:#008000;">/* translators: header image description */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Mountain’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></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:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para que entiendas cada sección esto es lo que significan:</p>
<p><strong>register_default_headers</strong>: La función que crea y muestra las cabeceras por defecto. Acepta varios parámetros.</p>
<p><strong>name</strong>: Establece el valor del nombre de la cabecera. También aquí podemos definir valores y claves adicionales.</p>
<p><strong>url</strong>: Ruta relativa a la imagen de cabecera. Date cuenta que la ruta por defecto es  /images/headers/nombre_de_imagen.jpg</p>
<p><strong>thumbnail_url</strong>: Ruta relativa a la miniatura de la imagen de cabecera, que verás en la página de administración del tema. La ruta por defecto es /images/headers/miniatura_de_imagen.jpg</p>
<p><strong>description</strong>: Una descripción para la imagen que se muestra al pasar el cursor sobre la imagen de miniatura en el panel de opciones de cabecera del tema.</p>
<p>Más cosas que debes tener en cuenta:</p>
<ul>
<li>Las imágenes de cabecera deben ser de un tamaño de 940×198 pixels, si son más grandes se redimensionan y si son más pequeñas se ajustarán también para rellenar esas dimensiones.</li>
<li>Las imágenes de miniatura pueden ser de cualquier tamaño pero el tamaño por defecto es de 230×48 pixels.</li>
<li>Las imágenes solo pueden estar en formato .jpg o se ignorarán y no se mostrarán.</li>
</ul>
<p>Ahora bien, ¿como añado imágenes o cambio las existentes?, pues si has llegado hasta aquí ya habrás imaginado que sustituir las imágenes por defecto por las tuyas es tan sencillo como subir tus imágenes de cabecera a la carpeta adecuada y cambiar nombre, descripción y nombre del fichero.</p>
<p>Pero si quieres añadir más el proceso sería este:</p>
<p>Copias un bloque de imagen (para no tener que teclear mucho) del estándar del fichero <code>functions.php</code>, por ejemplo este:</p>
<div class="igBar"><span id="lphp-37"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/#" onclick="javascript:showCodeTxt('php-37'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-37">
<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;">‘berries’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘url’ =&gt; ‘%s/images/headers/berries.jpg’,</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;">‘thumbnail_url’ =&gt; ‘%s/images/headers/berries-thumbnail.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* translators: header image description */</span></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;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Berries’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>, </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>A continuación pegas el bloque copiado al final de la sección y sustituyes los parámetros para que se adapten a la nueva imagen y miniatura que hayas subido a las carpetas por defecto (o la que tu quieras), por ejemplo:</p>
<div class="igBar"><span id="lphp-38"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/#" onclick="javascript:showCodeTxt('php-38'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-38">
<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;">‘fuego’ =&gt; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">‘url’ =&gt; ‘%s/images/cabeceras/fuego.jpg’,</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;">‘thumbnail_url’ =&gt; ‘%s/images/cabeceras/miniatura-fuego.jpg’,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* translators: header image description */</span></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;">‘description’ =&gt; __<span style="color:#006600; font-weight:bold;">&#40;</span> ‘Fuego, una imagen caliente para los dí<span style="color:#616100;">as</span> de frío’, ‘twentyten’ <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>, </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Guardas los cambios y ya tendrás una imagen nueva que cambiar fácilmente a golpe de clic.</p>
<p>Si te gusta ver las cosas más que leerlas <a href="http://www.wpbeginner.com/wp-themes/adding-additional-default-headers-to-the-wordpress-twenty-ten-theme/">en WPbegginer</a> han creado un video que explica este mismo proceso, este:</p>
<p><embed src="http://blip.tv/play/hdgAgeyKIwI" type="application/x-shockwave-flash" width="480" height="306" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=GMLa1XiUksI:7oUk8_1rqsI:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=GMLa1XiUksI:7oUk8_1rqsI:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/GMLa1XiUksI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/GMLa1XiUksI/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifica (o elimina) “/author/” de la URL</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/VsnUEnirVnc/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/VsnUEnirVnc/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:00:56 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Author]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Permalink]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8050</guid>
		<description><![CDATA[
Por defecto, WordPress nos crea una URL a cada autor, siguiendo esta estructura: http://tublog.com/author/usuario.
Habrá quienes deseen modificar esa sección, ya que es fea y, si hablamos de blogs hispanos, no encaja del todo bien. También habrá quienes deseen derechamente eliminar esa parte y dejar las URLs como http.//tublog.com/usuario. ¿La solución para ambos? Muy sencilla:

Tan solo [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayudawordpress.com/wp-content/uploads/2010/06/nadie.jpg" alt="" title="nadie" width="200" height="252" class="aligncenter size-full wp-image-8109" /></p>
<p>Por defecto, WordPress nos crea una URL a cada autor, siguiendo esta estructura: h<code>ttp://tublog.com/<strong>author</strong>/usuario</code>.</p>
<p>Habrá quienes deseen modificar esa sección, ya que es fea y, si hablamos de blogs hispanos, no encaja del todo bien. También habrá quienes deseen derechamente eliminar esa parte y dejar las URLs como http.//tublog.com/usuario. ¿La solución para ambos? <a href="http://sivel.net/2008/12/author-permalink-one-liner/">Muy sencilla</a>:<br />
<span id="more-8050"></span><br />
Tan solo añadimos esta linea a nuestro <code>functions.php</code>:</p>
<div class="igBar"><span id="lphp-11"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/VsnUEnirVnc/#" onclick="javascript:showCodeTxt('php-11'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'init'</span>, <a href="http://www.php.net/create_function"><span style="color:#000066;">create_function</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'$a'</span>, <span style="color:#FF0000;">'global $wp_rewrite; $wp_rewrite-&gt;author_base = &quot;REEMPLAZA_AQUI&quot;; $wp_rewrite-&gt;flush_rules();'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Esta demás decirte que parte debes modificar del código, pero por si las moscas, reemplaza donde dice <strong>REEMPLAZA_AQUI</strong> por la base que desees: "perfil", "autor", "usuario", la que quieres. Solo recuerda no borrar las comillas del código y no insertar espacios ni caracteres especiales.</p>
<p>Ahora, si lo que deseas es eliminar completamente esa parte de la URL, simplemente borra el <strong>REEMPLAZA_AQUI</strong> y no pongas nada (ni siquiera espacios) de modo que quede así:</p>
<div class="igBar"><span id="lphp-12"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/VsnUEnirVnc/#" onclick="javascript:showCodeTxt('php-12'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'init'</span>, <a href="http://www.php.net/create_function"><span style="color:#000066;">create_function</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'$a'</span>, <span style="color:#FF0000;">'global $wp_rewrite; $wp_rewrite-&gt;author_base = &quot;&quot;; $wp_rewrite-&gt;flush_rules();'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Obviamente, guarda todo y verás como las URLs de tus autores son ahora <code>http://tublog.com/loquesea/usuario</code>.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/downloads/?did=108" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía para Administrar Wordpress</a></p>



¿Te gustó este post? ¡Compártelo!


	<a rel="nofollow"  href="http://bitacoras.com/anotaciones/http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Bitacoras.com"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/bitacoras.png" title="Bitacoras.com" alt="Bitacoras.com" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="TwitThis"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F&amp;t=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL" title="Facebook"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://meneame.net/submit.php?url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Meneame"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F&amp;title=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL&amp;annotation=%0D%0A%0D%0APor%20defecto%2C%20WordPress%20nos%20crea%20una%20URL%20a%20cada%20autor%2C%20siguiendo%20esta%20estructura%3A%20http%3A%2F%2Ftublog.com%2Fauthor%2Fusuario.%0D%0A%0D%0AHabr%C3%A1%20quienes%20deseen%20modificar%20esa%20secci%C3%B3n%2C%20ya%20que%20es%20fea%20y%2C%20si%20hablamos%20de%20blogs%20hispanos%2C%20no%20encaja%20del%20todo%20bien.%20Tambi%C3%A9n%20" title="Google Bookmarks"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F&amp;title=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL&amp;notes=%0D%0A%0D%0APor%20defecto%2C%20WordPress%20nos%20crea%20una%20URL%20a%20cada%20autor%2C%20siguiendo%20esta%20estructura%3A%20http%3A%2F%2Ftublog.com%2Fauthor%2Fusuario.%0D%0A%0D%0AHabr%C3%A1%20quienes%20deseen%20modificar%20esa%20secci%C3%B3n%2C%20ya%20que%20es%20fea%20y%2C%20si%20hablamos%20de%20blogs%20hispanos%2C%20no%20encaja%20del%20todo%20bien.%20Tambi%C3%A9n%20" title="del.icio.us"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F&amp;title=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL" title="Live"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Technorati"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F&amp;title=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL&amp;body=%0D%0A%0D%0APor%20defecto%2C%20WordPress%20nos%20crea%20una%20URL%20a%20cada%20autor%2C%20siguiendo%20esta%20estructura%3A%20http%3A%2F%2Ftublog.com%2Fauthor%2Fusuario.%0D%0A%0D%0AHabr%C3%A1%20quienes%20deseen%20modificar%20esa%20secci%C3%B3n%2C%20ya%20que%20es%20fea%20y%2C%20si%20hablamos%20de%20blogs%20hispanos%2C%20no%20encaja%20del%20todo%20bien.%20Tambi%C3%A9n%20" title="Ping.fm"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.wikio.com/vote?url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Wikio"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/wikio.png" title="Wikio" alt="Wikio" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/getpf?url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Turn this article into a PDF!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Modifica%20%28o%20elimina%29%20%22%2Fauthor%2F%22%20de%20la%20URL&amp;body=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="E-mail this story to a friend!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fayudawordpress.com%2Fmodifica-o-elimina-author-de-la-url%2F" title="Print this article!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=VsnUEnirVnc:TftnuyrZxL4:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=VsnUEnirVnc:TftnuyrZxL4:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/VsnUEnirVnc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/VsnUEnirVnc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acelera la carga de WordPress con zlib</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/hf256wx9d_g/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/hf256wx9d_g/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 10:00:58 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[código]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress.org]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8025</guid>
		<description><![CDATA[Con 2 líneas de código en el header.php se puede comprimir la salida de WordPress hasta en un 75%. Mediante el uso de la tecnología de compresión zlib. ]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment  wp-att-8027" href="http://ayudawordpress.com/acelera-la-carga-de-wordpress-con-zlib/comprimir/"><img class="size-full wp-image-8027 alignright" src="http://ayudawordpress.com/wp-content/uploads/2010/06/comprimir.jpg" alt="" width="289" height="289" /></a>Con 2 líneas de código en el <em>header.php</em> se puede comprimir la salida de WordPress hasta en un 75%. Mediante el uso  de la tecnología de compresión zlib. Aprovechando esta característica de PHP se peude reducir notablemente el la velocidad de carga. Lo he probado con 6 sitios diferentes  y es notable el cambio.</p>
<p>Primero que nada debes verificar que tu servidor tenga la librería "zlib" activada, ya que sin ella no funciona el truco. Algunos Cpanel tienen la opción para activarla.</p>
<p>Luego, coloca el siguiente código en el header.php (antes del DOCTYPE)</p>
<div class="igBar"><span id="lphp-13"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/hf256wx9d_g/#" onclick="javascript:showCodeTxt('php-13'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-13">
<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></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/ini_set"><span style="color:#000066;">ini_set</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'zlib.output_compression'</span>, <span style="color:#FF0000;">'On'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</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;"><a href="http://www.php.net/ini_set"><span style="color:#000066;">ini_set</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'zlib.output_compression_level'</span>, <span style="color:#FF0000;">'1'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>¡Ya está!</p>
<p>En la página <a href="http://www.port80software.com/support/p80tools.asp" >Port80Software.com</a> puedes comprobar tu sitio para asegurarte de que está comprimiendo la salida.</p>
<p><em>Fuente: <a href="http://www.wprecipes.com/compress-wordpress-output-and-speed-your-blogs-load-speed" >WpRecipes!</a></em></p>



¿Te gustó este post? ¡Compártelo!


	<a rel="nofollow"  href="http://bitacoras.com/anotaciones/http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Bitacoras.com"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/bitacoras.png" title="Bitacoras.com" alt="Bitacoras.com" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="TwitThis"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F&amp;t=Acelera%20la%20carga%20de%20WordPress%20con%20zlib" title="Facebook"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://meneame.net/submit.php?url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Meneame"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F&amp;title=Acelera%20la%20carga%20de%20WordPress%20con%20zlib&amp;annotation=Con%202%20l%C3%ADneas%20de%20c%C3%B3digo%20en%20el%20header.php%20se%20puede%20comprimir%20la%20salida%20de%20WordPress%20hasta%20en%20un%2075%25.%20Mediante%20el%20uso%20de%20la%20tecnolog%C3%ADa%20de%20compresi%C3%B3n%20zlib.%20" title="Google Bookmarks"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F&amp;title=Acelera%20la%20carga%20de%20WordPress%20con%20zlib&amp;notes=Con%202%20l%C3%ADneas%20de%20c%C3%B3digo%20en%20el%20header.php%20se%20puede%20comprimir%20la%20salida%20de%20WordPress%20hasta%20en%20un%2075%25.%20Mediante%20el%20uso%20de%20la%20tecnolog%C3%ADa%20de%20compresi%C3%B3n%20zlib.%20" title="del.icio.us"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F&amp;title=Acelera%20la%20carga%20de%20WordPress%20con%20zlib" title="Live"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Technorati"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F&amp;title=Acelera%20la%20carga%20de%20WordPress%20con%20zlib&amp;body=Con%202%20l%C3%ADneas%20de%20c%C3%B3digo%20en%20el%20header.php%20se%20puede%20comprimir%20la%20salida%20de%20WordPress%20hasta%20en%20un%2075%25.%20Mediante%20el%20uso%20de%20la%20tecnolog%C3%ADa%20de%20compresi%C3%B3n%20zlib.%20" title="Ping.fm"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.wikio.com/vote?url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Wikio"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/wikio.png" title="Wikio" alt="Wikio" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/getpf?url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Turn this article into a PDF!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Acelera%20la%20carga%20de%20WordPress%20con%20zlib&amp;body=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="E-mail this story to a friend!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fayudawordpress.com%2Facelera-la-carga-de-wordpress-con-zlib%2F" title="Print this article!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=hf256wx9d_g:R1UA7yv3ThU:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=hf256wx9d_g:R1UA7yv3ThU:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/hf256wx9d_g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/hf256wx9d_g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugins WordPress HTML5</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/e56IybfcvnY/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/e56IybfcvnY/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 19:11:57 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CAPTCHA]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programación]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[Smartphone]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[Wordpress.org]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8039</guid>
		<description><![CDATA[
Ahora, con el acercamiento de la mayoría de los navegadores modernos a HTML5, se hace necesario que vayan apareciendo cada vez más plugins que se adapten a este nuevo &#8211; y revolucionario &#8211; estándar. Hasta ahora no hay muchos así que aquí tienes todos los que he encontrado con una descripción de lo que ofrecen. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-8040" title="html5" src="http://ayudawordpress.com/wp-content/uploads/2010/06/html5.jpg" alt="" width="200" height="200" /></p>
<p>Ahora, con el acercamiento de la mayoría de los navegadores modernos a <strong>HTML5</strong>, se hace necesario que vayan apareciendo cada vez más plugins que se adapten a este nuevo &#8211; y revolucionario &#8211; estándar. Hasta ahora no hay muchos así que aquí tienes todos los que he encontrado con una descripción de lo que ofrecen. Por supuesto, lo recomendable es que actualices o cambies a <strong>un navegador compatible con HTML5</strong>, <a href="http://www.incubaweb.com/html5-test-para-tu-navegador/">aquí tienes una comparativa</a>.</p>
<p><span id="more-8039"></span></p>
<h3>Plugins HTML5:</h3>
<ol>
<li><a href="http://wordpress.org/extend/plugins/degradable-html5-audio-and-video/">Degradable HTML5 audio and video</a> &#8211; Ofrece la posibilidad de incrustar vídeo y audio mediante <code>shortcodes</code> con soporte para degradados HTML5 de vídeo.</li>
<li><a href="http://wordpress.org/extend/plugins/tagcloud-html5/">TagCloud html5</a> &#8211; Nube de tags en HTML5, basada en el tagcanvas-JS de <a href="http://www.goat1000.com">http://www.goat1000.com</a>.</li>
<li><a href="http://wordpress.org/extend/plugins/html5-and-flash-video-player/">HTML5 and Flash Video Player</a> &#8211; Además de múltiples funciones para la incrustación sencilla de vídeo, ofrece soporte completo de vídeo HTML5.</li>
<li><a href="http://wordpress.org/extend/plugins/wptouch/">WPtouch iPhone Theme</a> &#8211; Este viejo conocido, que ofrece una versión móvil de tu sitio para smartphones, desde la versión 1.9.9 dispone de soporte para urls y comentarios HTML5:</li>
<li><a href="http://wordpress.org/extend/plugins/amr-ical-events-list/">AmR iCal Events List</a> &#8211; Plugin de calendario que, desde la versión 2.6.1.0 dispone de soporte HTML5 para los espacios en blanco a la hora de añadir nuevos calendarios.</li>
<li><a href="http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/">Transposh &#8211; translation filter for wordpress</a> &#8211; Plugin que, cumpliendo los estándares HTML5, ofrece un sistema de traducción, mitad automático, mitad humano, de traducción de los contenidos de tu sitio.</li>
<li><a href="http://wordpress.org/extend/plugins/wp-typography/">wp-Typography</a> &#8211; Plugin para mejorar las tipografías de tu sitio y, por supuesto, compatible con HTML5.</li>
<li><a href="http://wordpress.org/extend/plugins/si-contact-form/">Fast and Secure Contact Form</a> &#8211; Estupendo plugin que ofrece un formulario de contacto libre de spam, mediante captcha, y que cumple los estándares HTML5.</li>
<li><a href="http://wordpress.org/extend/plugins/forms/">Forms</a> &#8211; Formularios para WordPress totalmente HTML5.</li>
<li><a href="http://wordpress.org/extend/plugins/xhtml5-support/">XHTML5 Support</a> &#8211; Convierte todos los elementos actuales de tu tema a HTML5. Para Internet Explorer 6 y 7 require algún apaño pero funciona como un reloj. Muy recomendable, pero no para novatos.</li>
<li><a href="http://wordpress.org/extend/plugins/override-post-title-with-first-content-heading/">Override Post Title with First Content Heading</a> &#8211; Plugin especial para mejorar el SEO de tu sitio que sustituye el <code>h1</code> genérico de tu sitio en cada página por el título del post de la susodicha (página o entrada), por supuesto, siguiendo los estándares HTML5. Muy bueno.</li>
<li><a href="http://wordpress.org/extend/plugins/sectionize/">Sectionize</a> &#8211; Pues eso, &#8220;seccioniza&#8221; tu contenido para cumplir este estándar HTML5.</li>
<li><a href="http://wordpress.org/extend/plugins/hikari-email-url-obfuscator/">Hikari Email &amp; URL Obfuscator</a> &#8211; Permite que compartas tu email o urls en tu sitio pero sin que esto comprometa tu dirección de correo electrónico de cada a los spammers. Valida XHTML 1.1 y, por supuesto HTML5, sino no estaría en esta lista.</li>
<li><a href="http://wordpress.org/extend/plugins/external-video-for-everybody/">External &#8220;Video for Everybody&#8221;</a> &#8211; Otro estupendo plugin para incrustar vídeos de servicios externos que, además, reconoce los navegadores que acepten HTML5 para ofrecerles la versión adecuada del  vídeo.</li>
<li><a href="http://wordpress.org/extend/plugins/projekktor-html5-video-extensions-and-shortcodes/">Projekktor Video Tag Extension</a> &#8211; Permite insertar elementos de vídeo HTML5 en tus entradas.</li>
<li><a href="http://wordpress.org/extend/plugins/universal-video/">Universal Video</a> &#8211; Otro más, que hay muchos, para insertar vídeo HTML5 de manera sencilla en tu WordPress.</li>
</ol>
<p>Como ves no hay muchos, pero ya pronto serán legión. Espero te haya servido esta entrada para ir atrayendo tu atención hacia la importancia de <strong>HTML5</strong> y, de paso, conocer unos buenos plugins.<br />
<h3><font color="#000080">Contenido exclusivo para suscriptores al Feed</font></h3>
<p><font color="#808080">¡Gracias por seguirnos a diario!. Premiamos tu fidelidad ofreciéndote habitualmente contenidos exclusivos. Hoy puedes descargar:</font></p>
<p><a href="http://ayudawordpress.com/?dl_id=68" title="Clic aquí para iniciar la descarga"><img src="http://ayudawordpress.com/wp-content/uploads/2008/01/wp-install.jpg" alt="Clic aquí para iniciar la descarga" align="middle" border="0" height="59" width="43" /> Guía Windows Live Writer</a></p>



¿Te gustó este post? ¡Compártelo!


	<a rel="nofollow"  href="http://bitacoras.com/anotaciones/http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Bitacoras.com"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/bitacoras.png" title="Bitacoras.com" alt="Bitacoras.com" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="TwitThis"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F&amp;t=Plugins%20WordPress%20HTML5" title="Facebook"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://meneame.net/submit.php?url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Meneame"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F&amp;title=Plugins%20WordPress%20HTML5&amp;annotation=%0D%0A%0D%0AAhora%2C%20con%20el%20acercamiento%20de%20la%20mayor%C3%ADa%20de%20los%20navegadores%20modernos%20a%20HTML5%2C%20se%20hace%20necesario%20que%20vayan%20apareciendo%20cada%20vez%20m%C3%A1s%20plugins%20que%20se%20adapten%20a%20este%20nuevo%20-%20y%20revolucionario%20-%20est%C3%A1ndar.%20Hasta%20ahora%20no%20hay%20muchos%20as%C3%AD%20que%20aqu%C3%AD%20tien" title="Google Bookmarks"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F&amp;title=Plugins%20WordPress%20HTML5&amp;notes=%0D%0A%0D%0AAhora%2C%20con%20el%20acercamiento%20de%20la%20mayor%C3%ADa%20de%20los%20navegadores%20modernos%20a%20HTML5%2C%20se%20hace%20necesario%20que%20vayan%20apareciendo%20cada%20vez%20m%C3%A1s%20plugins%20que%20se%20adapten%20a%20este%20nuevo%20-%20y%20revolucionario%20-%20est%C3%A1ndar.%20Hasta%20ahora%20no%20hay%20muchos%20as%C3%AD%20que%20aqu%C3%AD%20tien" title="del.icio.us"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F&amp;title=Plugins%20WordPress%20HTML5" title="Live"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Technorati"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F&amp;title=Plugins%20WordPress%20HTML5&amp;body=%0D%0A%0D%0AAhora%2C%20con%20el%20acercamiento%20de%20la%20mayor%C3%ADa%20de%20los%20navegadores%20modernos%20a%20HTML5%2C%20se%20hace%20necesario%20que%20vayan%20apareciendo%20cada%20vez%20m%C3%A1s%20plugins%20que%20se%20adapten%20a%20este%20nuevo%20-%20y%20revolucionario%20-%20est%C3%A1ndar.%20Hasta%20ahora%20no%20hay%20muchos%20as%C3%AD%20que%20aqu%C3%AD%20tien" title="Ping.fm"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.wikio.com/vote?url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Wikio"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/wikio.png" title="Wikio" alt="Wikio" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/getpf?url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Turn this article into a PDF!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Plugins%20WordPress%20HTML5&amp;body=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="E-mail this story to a friend!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fayudawordpress.com%2Fplugins-wordpress-html5%2F" title="Print this article!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=e56IybfcvnY:iwYiY7dIsFI:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=e56IybfcvnY:iwYiY7dIsFI:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/e56IybfcvnY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/e56IybfcvnY/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Miniaturas de posts en el feed</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:28:51 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[miniatura]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=8013</guid>
		<description><![CDATA[
Una de las novedades que llevamos disfrutando en WordPress desde hace poco son las miniaturas de post, denominadas imágenes destacadas en WordPress 3.0. Añadir miniaturas de post a tu tema es muy fácil, ya lo hemos visto, pero ¿que pasa con los feeds RSS?, ahí no se mostrarán salvo que no nos pongamos manos a [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://ayudawordpress.com/wp-content/uploads/2009/10/miniatura-post1.png" title="Miniatura post wordpress" class="aligncenter" width="299" height="314" /></p>
<p>Una de las novedades que llevamos disfrutando en WordPress desde hace poco son las <a href="http://ayudawordpress.com/no-puedo-anadir-las-miniaturas-en-wordpress-2-9/">miniaturas de post</a>, denominadas imágenes destacadas en <a href="http://ayudawordpress.com/tag/wordpress-30/">WordPress 3.0</a>. <a href="http://ayudawordpress.com/anade-miniaturas-a-la-portada-de-tu-theme/">Añadir miniaturas de post a tu tema</a> es muy fácil, ya lo hemos visto, pero ¿que pasa con los feeds RSS?, ahí no se mostrarán salvo que no nos pongamos manos a la obra.</p>
<p>Pues vamos a ello … <br />
<span id="more-8013"></span></p>
<p>Además es sencillo, solo tenemos que recurrir al ya imprescindible fichero <code>functions.php</code> de tu tema y, en este caso, añadir unas cuantas líneas.</p>
<p>Si queremos que la miniatura aparezca antes del contenido del post el código es este:</p>
<div class="igBar"><span id="lphp-8"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/#" onclick="javascript:showCodeTxt('php-8'); return false;">Clic para 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:#FF9933; font-style:italic;">// mostrar miniaturas de post en los feeds</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> miniaturas_feeds<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$content</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$post</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>has_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</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></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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$content</span> = <span style="color:#FF0000;">'&lt;div&gt;'</span> . get_the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">'&lt;/div&gt;'</span> . <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_excerpt_rss'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_content_feed'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y si queremos que salga al final del contenido este otro:</p>
<div class="igBar"><span id="lphp-9"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/#" onclick="javascript:showCodeTxt('php-9'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-9">
<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:#FF9933; font-style:italic;">// mostrar miniaturas de post en los feeds</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> miniaturas_feeds<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$content</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$post</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>has_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</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></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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$content</span> = <span style="color:#0000FF;">$content</span> . <span style="color:#FF0000;">'&lt;div&gt;'</span> . get_the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#FF0000;">'&lt;/div&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_excerpt_rss'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_content_feed'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Pero, vamos más allá, porque si queremos que el texto "envuelva" la miniatura, solo hay que quitar el <code>div</code> que sobra, quedando así el código a añadir:</p>
<div class="igBar"><span id="lphp-10"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/#" onclick="javascript:showCodeTxt('php-10'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<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:#FF9933; font-style:italic;">// mostrar miniaturas de post en los feeds</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> miniaturas_feeds<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$content</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></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;">&nbsp; &nbsp; <a href="http://www.php.net/global"><span style="color:#000066;">global</span></a> <span style="color:#0000FF;">$post</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>has_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</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></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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$content</span> = get_the_post_thumbnail<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></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;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></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;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_excerpt_rss'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_content_feed'</span>, <span style="color:#FF0000;">'miniaturas_feeds'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como siempre, tu eliges el modo de hacerlo.</p>
<p>Visto <a href="http://digwp.com/2010/06/show-post-thumbnails-in-feeds/">en DiggWP</a></p>



¿Te gustó este post? ¡Compártelo!


	<a rel="nofollow"  href="http://bitacoras.com/anotaciones/http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Bitacoras.com"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/bitacoras.png" title="Bitacoras.com" alt="Bitacoras.com" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="TwitThis"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F&amp;t=Miniaturas%20de%20posts%20en%20el%20feed" title="Facebook"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://meneame.net/submit.php?url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Meneame"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F&amp;title=Miniaturas%20de%20posts%20en%20el%20feed&amp;annotation=%0D%0A%0D%0AUna%20de%20las%20novedades%20que%20llevamos%20disfrutando%20en%20WordPress%20desde%20hace%20poco%20son%20las%20miniaturas%20de%20post%2C%20denominadas%20im%C3%A1genes%20destacadas%20en%20WordPress%203.0.%20A%C3%B1adir%20miniaturas%20de%20post%20a%20tu%20tema%20es%20muy%20f%C3%A1cil%2C%20ya%20lo%20hemos%20visto%2C%20pero%20%C2%BFque%20pasa%20con%20l" title="Google Bookmarks"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F&amp;title=Miniaturas%20de%20posts%20en%20el%20feed&amp;notes=%0D%0A%0D%0AUna%20de%20las%20novedades%20que%20llevamos%20disfrutando%20en%20WordPress%20desde%20hace%20poco%20son%20las%20miniaturas%20de%20post%2C%20denominadas%20im%C3%A1genes%20destacadas%20en%20WordPress%203.0.%20A%C3%B1adir%20miniaturas%20de%20post%20a%20tu%20tema%20es%20muy%20f%C3%A1cil%2C%20ya%20lo%20hemos%20visto%2C%20pero%20%C2%BFque%20pasa%20con%20l" title="del.icio.us"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F&amp;title=Miniaturas%20de%20posts%20en%20el%20feed" title="Live"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Technorati"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F&amp;title=Miniaturas%20de%20posts%20en%20el%20feed&amp;body=%0D%0A%0D%0AUna%20de%20las%20novedades%20que%20llevamos%20disfrutando%20en%20WordPress%20desde%20hace%20poco%20son%20las%20miniaturas%20de%20post%2C%20denominadas%20im%C3%A1genes%20destacadas%20en%20WordPress%203.0.%20A%C3%B1adir%20miniaturas%20de%20post%20a%20tu%20tema%20es%20muy%20f%C3%A1cil%2C%20ya%20lo%20hemos%20visto%2C%20pero%20%C2%BFque%20pasa%20con%20l" title="Ping.fm"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.wikio.com/vote?url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Wikio"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/wikio.png" title="Wikio" alt="Wikio" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/getpf?url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Turn this article into a PDF!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Miniaturas%20de%20posts%20en%20el%20feed&amp;body=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="E-mail this story to a friend!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fayudawordpress.com%2Fminiaturas-de-posts-en-el-feed%2F" title="Print this article!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=nwH4WwDyoAE:mhr4F9WBdUk:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=nwH4WwDyoAE:mhr4F9WBdUk:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/nwH4WwDyoAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/nwH4WwDyoAE/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sácale partido a los Menús en TwentyTen: Dales color</title>
		<link>http://feedproxy.google.com/~r/AyudaWordpress/~3/6FynYzPcwY4/</link>
		<comments>http://feedproxy.google.com/~r/AyudaWordpress/~3/6FynYzPcwY4/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 22:03:32 +0000</pubDate>
		<dc:creator>planetawordpress</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[background color]]></category>
		<category><![CDATA[ccc]]></category>
		<category><![CDATA[Codex]]></category>
		<category><![CDATA[Colorlovers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Experto]]></category>
		<category><![CDATA[Menús]]></category>
		<category><![CDATA[Sufussion]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tutoriales / Trucos]]></category>
		<category><![CDATA[Twenty Ten]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>
		<category><![CDATA[Wordpress.org]]></category>

		<guid isPermaLink="false">http://ayudawordpress.com/?p=7979</guid>
		<description><![CDATA[Una de las novedades de Wordpress 3.0 es -vamos por parte, dijo Jack el destripador -el cambio de Theme por defecto a TwentyTen, y la inclusión en el core de un cómodo menú.
Pero, ¿Cómo le podemos sacar buen partido a dicho menú, y sobre todo a TwentyTen?
Puesto que aún en el Códex no vemos como [...]]]></description>
			<content:encoded><![CDATA[<p>Una de las novedades de <strong>Wordpress 3.0</strong> es -vamos por parte, dijo Jack el destripador -el cambio de Theme por defecto a <strong>TwentyTen</strong>, y la inclusión en el core de un cómodo menú.</p>
<p>Pero, ¿Cómo le podemos sacar buen partido a dicho menú, y sobre todo a TwentyTen?</p>
<p>Puesto que aún en el <a href="http://codex.wordpress.org/Custom_Menus">Códex</a> no vemos como manejar bien estos menús, sí podríamos verlo observando bien los diseños que los están implementando. El problema es que hasta ahora sólo lo ha hecho <strong>Sufussion</strong>, con una intrincada programación que no es amigable con aquellos que nos hemos metido a aprender Wordpress sólo para poder personalizar a mayor profundidar nuestro espacio en Internet.</p>
<p>¿Qué hacemos por ahora? La opción que nos queda es sacarle el jugo a la implementación del menú que se ha hecho en TwentyTen. Y qué mejor que ir a la hoja de estilos de 2010, ir al final de la sección de menús y pegar lo que sigue:</p>
<div class="igBar"><span id="lcss-12"><a href="http://feedproxy.google.com/~r/AyudaWordpress/~3/6FynYzPcwY4/#" onclick="javascript:showCodeTxt('css-12'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-12">
<div class="css">
<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;">#access .rojo, #access <span style="color: #6666ff;">.rojo </span>a <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background-color</span>:#FF0000;</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;">color</span>:#CCC;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></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;">#access .verde, #access <span style="color: #6666ff;">.verde </span>a <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>: #5efc2c;</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: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#access .azul, #access <span style="color: #6666ff;">.azul </span>a <span style="color: #66cc66;">&#123;</span></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;">background</span>: #2c42fc;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></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;">#access <span style="color: #6666ff;">.amarillo </span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">background</span>: #fcec2c;</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: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#access <span style="color: #6666ff;">.naranjo </span><span style="color: #66cc66;">&#123;</span></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;">background</span>: #fc732c;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">font-<span style="color: #000000; font-weight: bold;">color</span>:#000;</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: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Observe usted que en algunas reglas de css hemos añadido también "<code>#access .color a</code>". Esto provoca que todo el menú desplegable muestre el color seleccionado.</p>
<p>Presento este esquema, pero es extensible a gusto.</p>
<p>Una vez colocado el añadido CSS, nos falta ir a la sección de Menús, (Apariencia &gt; Menús) Desplegar uno de los elementos, y en "<code>CSS Classes - Optional</code>"  colocamos el color de la regla que hemos definido.</p>
<p><a  href="http://ayudawordpress.com/sacale-partido-a-los-menus-en-twentyten-dales-color/menucwp3-2/"><img class="alignnone size-full wp-image-7981" src="http://ayudawordpress.com/wp-content/uploads/2010/06/menucwp3-2.png" alt="" width="555" height="343" /></a></p>
<p>Nos quedará algo así, si vamos asignando a cada menú el color que deseemos.</p>
<p><a  href="http://ayudawordpress.com/sacale-partido-a-los-menus-en-twentyten-dales-color/menucwp3-1/"><img class="alignnone size-medium wp-image-7980" src="http://ayudawordpress.com/wp-content/uploads/2010/06/menucwp3-1-500x71.png" alt="" width="500" height="71" /></a></p>
<p>Comparto esto, para que no les sea el menú tan gris. <span style="text-decoration: line-through">Y poder trasplantar el código de los menús a nuestros propios temas, pero atribuytendo autoría a los creadores del tema donante, obvio</span></p>



¿Te gustó este post? ¡Compártelo!


	<a rel="nofollow"  href="http://bitacoras.com/anotaciones/http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Bitacoras.com"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/bitacoras.png" title="Bitacoras.com" alt="Bitacoras.com" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="TwitThis"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F&amp;t=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color" title="Facebook"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://meneame.net/submit.php?url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Meneame"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F&amp;title=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color&amp;annotation=Una%20de%20las%20novedades%20de%20Wordpress%203.0%20es%20-vamos%20por%20parte%2C%20dijo%20Jack%20el%20destripador%20-el%20cambio%20de%20Theme%20por%20defecto%20a%20TwentyTen%2C%20y%20la%20inclusi%C3%B3n%20en%20el%20core%20de%20un%20c%C3%B3modo%20men%C3%BA.%0D%0A%0D%0APero%2C%20%C2%BFC%C3%B3mo%20le%20podemos%20sacar%20buen%20partido%20a%20dicho%20men%C3%BA%2C%20y%20sobre%20tod" title="Google Bookmarks"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F&amp;title=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color&amp;notes=Una%20de%20las%20novedades%20de%20Wordpress%203.0%20es%20-vamos%20por%20parte%2C%20dijo%20Jack%20el%20destripador%20-el%20cambio%20de%20Theme%20por%20defecto%20a%20TwentyTen%2C%20y%20la%20inclusi%C3%B3n%20en%20el%20core%20de%20un%20c%C3%B3modo%20men%C3%BA.%0D%0A%0D%0APero%2C%20%C2%BFC%C3%B3mo%20le%20podemos%20sacar%20buen%20partido%20a%20dicho%20men%C3%BA%2C%20y%20sobre%20tod" title="del.icio.us"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F&amp;title=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color" title="Live"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Technorati"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F&amp;title=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color&amp;body=Una%20de%20las%20novedades%20de%20Wordpress%203.0%20es%20-vamos%20por%20parte%2C%20dijo%20Jack%20el%20destripador%20-el%20cambio%20de%20Theme%20por%20defecto%20a%20TwentyTen%2C%20y%20la%20inclusi%C3%B3n%20en%20el%20core%20de%20un%20c%C3%B3modo%20men%C3%BA.%0D%0A%0D%0APero%2C%20%C2%BFC%C3%B3mo%20le%20podemos%20sacar%20buen%20partido%20a%20dicho%20men%C3%BA%2C%20y%20sobre%20tod" title="Ping.fm"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.wikio.com/vote?url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Wikio"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/wikio.png" title="Wikio" alt="Wikio" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/getpf?url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Turn this article into a PDF!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=S%C3%A1cale%20partido%20a%20los%20Men%C3%BAs%20en%20TwentyTen%3A%20Dales%20color&amp;body=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="E-mail this story to a friend!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fayudawordpress.com%2Fsacale-partido-a-los-menus-en-twentyten-dales-color%2F" title="Print this article!"><img src="http://ayudawordpress.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>


<br/><br/><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AyudaWordpress?a=6FynYzPcwY4:GSM0dit1-lM:Dsqc8YHEA1Y"><img src="http://feeds.feedburner.com/~ff/AyudaWordpress?i=6FynYzPcwY4:GSM0dit1-lM:Dsqc8YHEA1Y" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AyudaWordpress/~4/6FynYzPcwY4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://feedproxy.google.com/~r/AyudaWordpress/~3/6FynYzPcwY4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
