<?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>La Baja en Red &#187; Wordpress 2.8.4</title>
	<atom:link href="http://labajaenred.com/tag/wordpress-2-8-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://labajaenred.com</link>
	<description>Blog colectivo sobre tecnología, internet, diseño, redes sociales y mas de baja california</description>
	<lastBuildDate>Wed, 08 Feb 2012 20:51:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nuevo theme para wordpress &#8221; Letter Frame &#8220;</title>
		<link>http://labajaenred.com/theme-para-wordpress-letter-frame/</link>
		<comments>http://labajaenred.com/theme-para-wordpress-letter-frame/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 00:00:24 +0000</pubDate>
		<dc:creator>danielmd</dc:creator>
				<category><![CDATA[Arte y diseño]]></category>
		<category><![CDATA[Themes wordpress]]></category>
		<category><![CDATA[Wordpress 2.8.4]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1328</guid>
		<description><![CDATA[Si estas en busca de themes nuevos para wordpress, hoy te presentamos &#8220;Letter Frame&#8221;, un theme creado por Brian de TemplateLite.com, muy bueno para crear un blog personal. Detalles : Listo para utilizar widget, 3 columnas, sidebar derecho, XHTML 1.0 y CSS validos, acepta wordpress 2.7 &#38; 2.8.*. Demo : Letter Frame Descargar : Letter [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Si estas en busca de themes nuevos para wordpress, hoy te presentamos &#8220;<strong>Letter Frame&#8221;</strong>, un theme creado por Brian de <strong>TemplateLite.com</strong>, muy bueno para <strong>crear un blog personal</strong>.<br />
<img src="http://i37.tinypic.com/28irn83.jpg" alt="letter frame wordpress theme" width="625" height="321" /></p>
<p><strong>Detalles</strong> : Listo para utilizar widget, 3 columnas, sidebar derecho, XHTML 1.0 y CSS validos, acepta wordpress 2.7 &amp; 2.8.*.</p>
<p class="descargar">
<strong>Demo :</strong> <a title="Letter Frame - Free WordPress Theme demo" href="http://www.templatelite.com/download/preview.php?theme=24" target="_blank">Letter Frame</a><br />
<strong>Descargar </strong>: <a title="Letter Frame - Free WordPress Theme download" href="http://www.crazyleafdesign.com/blog/download/wordpress-themes/letter-frame-crazyleafdesign.zip" target="_blank">Letter Frame</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/theme-para-wordpress-letter-frame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>30 plugins wordpress para mejorar el sidebar</title>
		<link>http://labajaenred.com/30-plugins-wordpress-para-mejorar-el-sidebar/</link>
		<comments>http://labajaenred.com/30-plugins-wordpress-para-mejorar-el-sidebar/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 17:55:28 +0000</pubDate>
		<dc:creator>Usuario</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[Themes wordpress]]></category>
		<category><![CDATA[Wordpress 2.8.4]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1278</guid>
		<description><![CDATA[En 1stwebdesigner han hecho una recopilación de 30 excelentes plugins que te ayudarán a mejorar el sidebar de tu blog en wordpress, podrás encontrar desde plugins que facilitan la suscripción a tus visitantes, widget que te permiten insertar galerías, widgets que te ayudan a mostrar los últimos twitt que has hecho en twitter, mostrar comentarios [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p><img class="alignright" src="http://i34.tinypic.com/2ujgmu0.jpg" alt="wordpress sidebar" />En 1stwebdesigner han hecho una recopilación de <strong>30 excelentes plugins</strong> que te ayudarán a<strong> mejorar el sidebar de tu blog en wordpress</strong>, podrás encontrar desde plugins que facilitan la suscripción a tus visitantes, widget que te permiten insertar galerías, widgets que te ayudan a mostrar los últimos twitt que has hecho en twitter, mostrar comentarios recientes en alguna entrada y muchos mas <strong>widgets</strong> que te facilitaran el trabajo y te ahorraran tiempo si no sabes editar el código de tu blog.</p>
<p class="informacion">Aquí pueden ver la lista completa:<a href="http://www.1stwebdesigner.com/wordpress/wordpress-plugins-improve-sidebar/"> LINK</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/30-plugins-wordpress-para-mejorar-el-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack para evitar el contenido duplicado en los comentarios</title>
		<link>http://labajaenred.com/hack-para-evitar-el-contenido-duplicado-en-los-comentarios/</link>
		<comments>http://labajaenred.com/hack-para-evitar-el-contenido-duplicado-en-los-comentarios/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:54:55 +0000</pubDate>
		<dc:creator>danielmd</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[Wordpress 2.8]]></category>
		<category><![CDATA[Wordpress 2.8.4]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1243</guid>
		<description><![CDATA[Una de las cosas mas importantes para el SEO es evitar lo mas posible el contenido duplicado ya que buscadores como google pueden llegar a penalizar nuestros blogs por mostrar contenido duplicado en el. Para evitar que los buscadores piensen que tenemos contenido duplicado en los comentarios de blogs que corren sobre WordPress, podemos utilizar [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p><img class="alignleft" src="http://i34.tinypic.com/2du9fmw.jpg" alt="contenido duplicado" width="145" height="224" />Una de las cosas mas importantes para el <strong>SEO</strong> es evitar lo mas posible el <strong>contenido duplicado</strong> ya que buscadores como google pueden llegar a penalizar nuestros blogs por mostrar contenido duplicado en el.</p>
<p>Para evitar que los buscadores piensen que tenemos contenido duplicado en los comentarios de blogs que corren sobre WordPress, podemos utilizar este pedazo de código que les agregara el atributo<strong> rel=canonical</strong> a los links de los comentarios automáticamente para decirle a los buscadores que no es contenido duplicado.<br />
Para implementarlo simplemente debemos abrimos el archivo <strong>funtions.php</strong> y agregamos esta función después de la etiqueta</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> canonical_for_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$cpage</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$cpage</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;link rel='canonical' href='&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;' /&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'canonical_for_comments'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p class="nota"><strong><strong>Fuente:</strong> wprecipes.com | <a href="http://www.wprecipes.com/wordpress-hack-canonical-links-for-comments">Link</a> </strong></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/hack-para-evitar-el-contenido-duplicado-en-los-comentarios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacks wordpress para mostrar estadísticas</title>
		<link>http://labajaenred.com/hacks-wordpress-para-mostrar-estadisticas/</link>
		<comments>http://labajaenred.com/hacks-wordpress-para-mostrar-estadisticas/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 21:46:45 +0000</pubDate>
		<dc:creator>danielmd</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[Editar estilos wordpress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress 2.8.4]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1190</guid>
		<description><![CDATA[Buscando y rebuscando algunos hacks para un theme de wordpress que estaba haciendo me encontré con algunos hacks que muestran estadísticas y que tal vez les puedan servir, se trata de pequeños pedazos de código que nos muestran el numero de seguidores de twitter, el total de lectores de feed, el numero total de comentarios [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p style="text-align: center;"><img class="aligncenter" src="http://i33.tinypic.com/2wex55c.jpg" alt="wordpress hacks estadisticas" /></p>
<p>Buscando y rebuscando algunos hacks para un theme de wordpress que estaba haciendo me encontré con algunos hacks que muestran estadísticas y que tal vez les puedan servir, se trata de pequeños pedazos de código que nos muestran el numero de seguidores de twitter, el total de lectores de feed, el numero total de comentarios de un post, numero de usuarios del blog, numero de entradas en el blog, numero total de comentarios en todo el blog, entre otros.<br />
Aquí se los dejo por si le sirven a ustedes también <img src='http://labajaenred.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
<span id="more-1190"></span><br />
<strong><a href="http://www.wprecipes.com/how-to-display-your-feedburner-count-in-full-text">Mostrar el número total de seguidores del Feed</a></strong><br />
Copian y pegan este código donde quieren que aparezca el numero en texto plano(su servidor necesita tener cURL activado).</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$fburl</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=feed-id&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$fburl</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$stored</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$grid</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SimpleXMLElement<span style="color: #009900;">&#40;</span><span style="color: #000088;">$stored</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$rsscount</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$grid</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">feed</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">entry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'circulation'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$rsscount</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong><a href="http://www.wprecipes.com/display-the-total-number-of-your-twitter-followers-on-your-wordpress-blog">Mostrar el numero de seguidores de twitter en el blog.</a></strong><br />
Abren el archivo funtions.php de su blog y pegan esto al final</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
string_getInsertedString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$short_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$is_html</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #339933;">&gt;=</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$insertion_length</span><span style="color: #339933;">=</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;++</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #000088;">$short_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">=</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$long_string</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #000088;">$insertion_length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$is_html</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$inserted_string</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$insertion_length</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'&lt;'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$inserted_string</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$insertion_length</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$inserted_string</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> DOMElement_getOuterHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$document</span><span style="color: #339933;">,</span><span style="color: #000088;">$element</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$html</span><span style="color: #339933;">=</span><span style="color: #000088;">$document</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$element</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">parentNode</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">removeChild</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$element</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$html2</span><span style="color: #339933;">=</span><span style="color: #000088;">$document</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> string_getInsertedString<span style="color: #009900;">&#40;</span><span style="color: #000088;">$html</span><span style="color: #339933;">,</span><span style="color: #000088;">$html2</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getFollowers<span style="color: #009900;">&#40;</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://twitter.com/&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DomDocument<span style="color: #339933;">;</span>
  <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$ele</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'follower_count'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$innerHTML</span><span style="color: #339933;">=</span><span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/^&lt;[^&gt;]*&gt;(.*)&lt;[^&gt;]*&gt;$/'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>1&quot;</span><span style="color: #339933;">,</span>DOMElement_getOuterHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$doc</span><span style="color: #339933;">,</span><span style="color: #000088;">$ele</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$innerHTML</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Y donde quieran que aparezca el numero de followers pegan esto, puede ser en el sidebar, index, single etc.. No se olviden cambiar mi nick.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> getFollowers<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;danielmd&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; followers&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Uno mas como el anterior pero utilizando javascript(no olviden cambiar mi nick por el suyo<br />
<strong>Número de seguidores de twitter con javascript y twittercounter en texto plano</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://twittercounter.com/widget/index.php?username=danielmd&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p><strong><a href="http://wp-cms.com/code-customisation/how-to-show-the-total-number-of-posts-categories-and-tags-maybe-in-your-sidebar/">Mostrar el numero total de post, numero total de categorías, numero total de comentarios y numero total de tags en todo el blog.</a></strong><br />
Abren el archivo funtions.php de su theme y pegan esto al final</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$numposts</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT COUNT(*) FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;posts</span> WHERE post_type = 'post' AND post_status = 'publish'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$numcomms</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT COUNT(*) FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;comments</span> WHERE comment_approved = '1'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$numcats</span> <span style="color: #339933;">=</span> wp_count_terms<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$numtags</span> <span style="color: #339933;">=</span> wp_count_terms<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_tag'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Y por ultimo solo pegan esto donde quieren que aparezcan estas estadísticas(index,single,sidebar,footer etc..)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Este blog tiene '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$numposts</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' post'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">',contenidos en '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$numcats</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' categorias'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">', usando '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$numtags</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tags.'</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;</pre></td></tr></table></div>

<p><strong><a href="http://www.wprecipes.com/wordpress-function-to-display-your-posts-words-count">Mostrar el numero de palabras que utilizaste en un post</a></strong><br />
Editan su archivo funtions.php y pegan esto al final</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> wcount<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ob_get_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Y donde quieran que aparezca colocan esto</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wcount<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong><a href="http://www.wprecipes.com/display-the-total-number-of-users-of-your-wordpress-blog">Mostrar el numero de usuarios en el blog wordpress</a></strong><br />
Pegan esto donde quieran mostrar el total de usuarios de su blog</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;El blog tiene
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$users</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_var</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT COUNT(ID) FROM <span style="color: #006699; font-weight: bold;">$wpdb-&gt;users</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$users</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; registered users.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
 registrados&lt;/p&gt;</pre></td></tr></table></div>

<p><strong>Mostrar numero de comentarios en cada entrada</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cero comentarios'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'un comentario'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'% comentarios'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.&lt;/p&gt;</pre></td></tr></table></div>

</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/hacks-wordpress-para-mostrar-estadisticas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nueva actualización de Seguridad WordPress 2.8.4</title>
		<link>http://labajaenred.com/nueva-actualizacion-de-seguridad-wordpress-2-8-4/</link>
		<comments>http://labajaenred.com/nueva-actualizacion-de-seguridad-wordpress-2-8-4/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 04:56:50 +0000</pubDate>
		<dc:creator>Usuario</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[actualización]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Wordpress 2.8.4]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=919</guid>
		<description><![CDATA[Ya esta lista una nueva actualización de seguridad ante el bug que salio en la versión 2.8.3 de wordpress. Así que si posees un blog que corre sobre wordpress recomendamos que actualicen rápido porque si no pueden sufrir de algún intento de reseteo de password por parte de personas que quieran molestar. Descargar WordPress 2.8.4]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Ya esta lista una nueva actualización de seguridad ante el bug que salio en la versión 2.8.3 de wordpress. Así que si posees un blog que corre sobre wordpress recomendamos que actualicen rápido porque si no pueden sufrir de algún intento de reseteo de password por parte de personas que quieran molestar.</p>
<p class=descargar>
<a href="http://wordpress.org/development/2009/08/2-8-4-security-release/">Descargar WordPress 2.8.4</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/nueva-actualizacion-de-seguridad-wordpress-2-8-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

