<?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; Editar estilos wordpress</title>
	<atom:link href="http://labajaenred.com/tag/editar-estilos-wordpress/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>40 themes nuevos para wordpress</title>
		<link>http://labajaenred.com/40-themes-nuevos-para-wordpress/</link>
		<comments>http://labajaenred.com/40-themes-nuevos-para-wordpress/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:16:17 +0000</pubDate>
		<dc:creator>danielmd</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Editar estilos wordpress]]></category>
		<category><![CDATA[Themes wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1626</guid>
		<description><![CDATA[Cuando iniciamos un blog en wordpress, una de las primeras tareas que debemos realizar si no sabemos de diseño web, es la de buscar un theme que se adapte a nuestras necesidades, que sea bueno, que sea sencillo, que sea agradable en fin, ya depende de cada uno. Tener un buen theme en nuestro blog [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p><a href="http://labajaenred.com/wp-content/uploads/2009/11/freshwptheme1.jpg"><img class="aligncenter size-full wp-image-1627" title="freshwptheme1" src="http://labajaenred.com/wp-content/uploads/2009/11/freshwptheme1.jpg" alt="freshwptheme1" width="504" height="225" /></a><br />
Cuando iniciamos un <strong>blog en wordpress</strong>, una de las primeras tareas que debemos realizar si no sabemos de diseño web, es la de buscar un theme que se adapte a nuestras necesidades, que sea bueno, que sea sencillo, que sea agradable en fin, ya depende de cada uno. Tener un buen theme en nuestro blog es algo que debemos tomar muy en cuenta ya que será nuestra carta de presentación para los visitantes que lleguen a nuestro blog.  Así que si tienes un blog en wordpress y estas buscando <strong>themes nuevos para wordpress</strong>, te recomiendo que revises esta lista de<strong> 40 themes</strong> que han recopilado en <strong>speckyboy.com</strong>.</p>
<pre class="descargar"><a rel="nofollow" href="http://speckyboy.com/2009/11/05/40-awesome-and-fresh-wordpress-themes/"> 40 Awesome and Fresh WordPress Themes</a></pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/40-themes-nuevos-para-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>El legado de aquiles</title>
		<link>http://labajaenred.com/el-legado-de-aquiles/</link>
		<comments>http://labajaenred.com/el-legado-de-aquiles/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 02:46:47 +0000</pubDate>
		<dc:creator>Usuario</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Editar estilos wordpress]]></category>
		<category><![CDATA[Wordpress 2.8]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=1501</guid>
		<description><![CDATA[El legado de aquíles es un blog de tecnologia e Internet en el que se encuentra la información mas reciente de lo que pasa en internet. En este sitio encontraremos muchísima información y tutoriales para aprender a usar muchas de las aplicaciones web que existen actualmente, consejos para aprender a usarlas y bastante información sobre [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p><a href="http://labajaenred.com/wp-content/uploads/2009/11/legado.PNG"><img class="aligncenter size-full wp-image-1514" title="legado de aquiles" src="http://labajaenred.com/wp-content/uploads/2009/11/legado.PNG" alt="legado de aquiles" width="320" height="107" /></a>El <strong>legado de aquíles</strong> es un blog de<a href="http://legadodeaquiles.com"> <strong>tecnologia</strong></a> e <strong>Internet</strong> en el que se encuentra la información mas reciente de lo que pasa en<strong> <a href="http://legadodeaquiles.com">internet</a></strong>. En este sitio encontraremos muchísima información y tutoriales para aprender a usar muchas de las aplicaciones web que existen actualmente, consejos para aprender a usarlas y bastante información sobre programas, así como recomendaciones de software gratuito que hay en internet.</p>
<p>Pero no solo eso, si no que también ofrecen consejos para ser un buen blogger,<strong> consejos sobre SEO</strong> y técnicas para aprender a monetizar tu sitio web o blog, así como consejos prácticos para el uso de <strong>herramientas SEO</strong>,  <strong>herramientas para bloggers</strong> entre muchas otras cosas mas para mejorar y tener un blog bastante competitivo en internet.</p>
<p class="informacion">Entrar al <strong>legadodeaquiles.com</strong> | <a href="http://legadodeaquiles.com">Link</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/el-legado-de-aquiles/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>Mostrar mensajes personalizados en las entradas del blog con CSS</title>
		<link>http://labajaenred.com/mostrar-mensajes-personalizados-en-las-entradas-del-blog-con-css/</link>
		<comments>http://labajaenred.com/mostrar-mensajes-personalizados-en-las-entradas-del-blog-con-css/#comments</comments>
		<pubDate>Sat, 30 May 2009 06:57:49 +0000</pubDate>
		<dc:creator>danielmd</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[css en blog]]></category>
		<category><![CDATA[Editar estilos wordpress]]></category>
		<category><![CDATA[tutorial css wordpress]]></category>

		<guid isPermaLink="false">http://labajaenred.com/?p=636</guid>
		<description><![CDATA[Estaba modificando un theme de wordpress para adaptarlo a wp 2.7.1 y me encontré este pedazo de código dentro del css del theme. .informacion { background: #eaeed2 url(images/post-style/informacion.gif) no-repeat left 1px; padding: 12px 3px 12px 40px; clear: both; width: 70%; margin-top: 5px; margin-bottom: 5px; border: 1px solid #DAE1B0; font-size: 12px; line-height: 17px; color: #272727; } [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p>Estaba modificando un <strong>theme de wordpress</strong> para adaptarlo a wp 2.7.1 y me encontré este pedazo de código dentro del css del theme.</p>
<blockquote><p>.informacion {<br />
background: #eaeed2 url(images/post-style/informacion.gif) no-repeat left 1px;<br />
padding: 12px 3px 12px 40px;<br />
clear: both;<br />
width: 70%;<br />
margin-top: 5px;<br />
margin-bottom: 5px;<br />
border: 1px solid #DAE1B0;<br />
font-size: 12px;<br />
line-height: 17px;<br />
color: #272727;<br />
}</p></blockquote>
<p>Este código nos permite darle formato a un texto y hacerlo resaltar dentro de alguna entrada, por ejemplo:</p>
<p class="descargar">-Descargar este archivo</p>
<p class="nota">-No olvides visitar la pagina mas seguido</p>
<p class="warning">-Procura utilizar un navegador que no sea IE6</p>
<p class="click">-Da click en este link</p>
<p><span id="more-636"></span><br />
<strong>Explicación</strong><br />
Para usar este tipo de mensajes deben tener una hoja de estilos donde colocarlo o agregar ese código dentro de las etiquetas <strong>&lt;head&gt; &lt;/head&gt;</strong>. Por ejemplo, en el theme de este blog tengo una hoja de estilos que se llama <strong>style.css</strong>, ahí es donde copie el código que puse al inicio con algunas modificaciones para poder utilizarlo como yo quería.</p>
<p>Para usarlo en sus entradas deben asignarle la clase &#8220;<strong>informacion&#8221;</strong> a la etiqueta a la cual le quieren dar ese formato desde la <strong>edición de entradas por HTML</strong>, por ejemplo:</p>
<blockquote><p>&lt;p class=&#8221;informacion&#8221;&gt;-No olvides visitar la pagina mas seguido&lt;/p&gt;</p></blockquote>
<p><strong>Resultado:</strong></p>
<p class="nota">-No olvides visitar la pagina mas seguido</p>
<p>Si quieren hacer sus propias clases, cambiar los iconos, modificar el tamaño de la fuente, colores u otra cosa.  Aquí les explico un poquito de que significa cada cosa.</p>
<p><strong>.informacion { }</strong> &lt;&#8211;Esta parte indica como se llamara la clase y como será llamada desde sus entradas, inicia con una llave y se cierra con otra, donde todo lo que este dentro es el formato que tendrán sus mensajes, si quieren crear otro formato solo hay que cambiar el nombre de <strong>&#8220;informacion&#8221;</strong> por el que ustedes quieran, solo que a la hora de llamarlo deben colocar el nombre de esa clase dentro de la etiqueta a la que darán formato.</p>
<blockquote><p>&lt;p class=nombre_que_eligieron&gt;MENSAJE&lt;p&gt;</p></blockquote>
<p><strong>background: #eaeed2 url(images/post-style/informacion.gif) no-repeat left 1px;</strong>&lt;&#8211;Aquí se establece un color de fondo , la ruta del icono que aparecerá dentro del cuadro de estilo, <strong>no-repeat</strong> indica que esa imagen no se repetirá y que solo aparecerá una vez, <strong>left 1px</strong> dice que la imagen aparecerá separada un pixel a partir de donde inicia el cuadro.</p>
<p><strong>padding: 12px 3px 12px 40px; </strong>&lt;&#8211; Se utiliza para acomodar el contenido, esta es la forma abreviada de colocar</p>
<blockquote><p><span>padding-top:  | padding-right:  | padding-bottom:  | padding-left</span></p></blockquote>
<p><strong>width: 70%; </strong>&lt;&#8211;Dice que dará formato al 70% de lo ancho del 100% total de nuestro DIV o del espacio donde aparecen nuestras entradas.</p>
<p><strong>border: 1px solid #DAE1B0; </strong>&lt;&#8211;El borde del cuadro tendrá un grosor de 1 pixel y sera de X color.</p>
<p><strong>font-size: 12px; </strong>&lt;&#8211;Tamaño de la fuente del texto.</p>
<p><strong>color: #272727; </strong> &lt;&#8211;Establece el color de la fuente del texto.</p>
<p>Y bueno, creo que con eso ya pueden personalizar su propio estilo para los mensajes, pero si no me entendieron o quieren saber mas, pueden visitar estos sitios.</p>
<p class="nota"><strong>Información sobre CSS</strong><br />
<a href="http://www.w3schools.com/css/">w3schools.com &#8211; </a><a href="http://es.html.net/tutorials/css/">es.html.net -</a><a href="http://es.html.net/tutorials/css/lesson10.asp"> Margen y Padding</a></p>
<p class="click"><strong>Fuente:</strong><br />
<a href="http://soycachanilla.com/2009/05/mostrar-mensajes-con-estilo-en-el-blog.html">Soycachanilla.com</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://labajaenred.com/mostrar-mensajes-personalizados-en-las-entradas-del-blog-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

