<?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>Guia Wordpress &#187; Tutoriales</title>
	<atom:link href="http://www.guiawordpress.org/category/tutoriales/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guiawordpress.org</link>
	<description>Otro sitio web creado con WordPress</description>
	<lastBuildDate>Sat, 27 Feb 2010 00:54:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recibir un aviso por mail si falla la Base de Datos</title>
		<link>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/</link>
		<comments>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:40:17 +0000</pubDate>
		<dc:creator>Toniface</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[aviso]]></category>
		<category><![CDATA[Base de Datos]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1361</guid>
		<description><![CDATA[Este es un pequeño truco para hacer que os llegue un aviso a vuestro mail en caso que se detecte algún fallo en la Base de Datos de vuestro WordPress. Eso sí, sabreis que hay algún fallo pero no de cual se trata, pero al menos ya sabremos que algo no marcha bien.
El funcionamiento es [...]


]]></description>
			<content:encoded><![CDATA[<p>Este es un pequeño truco para hacer que os llegue un aviso a vuestro mail en caso que se detecte algún fallo en la Base de Datos de vuestro WordPress. Eso sí, sabreis que hay algún fallo pero no de cual se trata, pero al menos ya sabremos que algo no marcha bien.</p>
<p>El funcionamiento es sencillo, WordPress siempre se fija en si hay algún error, pero hace una llamada dentro de <em><strong>wp-content</strong></em> al archivo <strong><em>db-error.php</em></strong> que no existe, por eso hemos de crearlo.</p>
<p>Con nuestro editor de texto favorito (texto plano, tipo Bloc de notas, no Word) creamos el archivo <strong><em>db-error.php</em></strong> con el siguiente contenido:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" &lt;?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?&gt;&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Database Error&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Error establishing a database connection&lt;/h1&gt;

&lt;?php
$email = "<strong>tu correo</strong>";
mail(
$email,
// Asunto
"<strong>Error en la base de datos</strong>",
// Mensaje
"<strong>Parece que tu blog hay problemas con la base de datos</strong>."
);
?&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Evidentemente debéis poner una direccion de mail en<strong> “tu correo”</strong>, y podéis modificar el cuerpo del e-mail y el asunto Una vez creado lo subimos a <strong><em>/wp-content</em></strong> y ya está, la próxima vez que falle nuestra Base de Datos seremos los primeros en saberlo.</p>
<p><strong>Vía:</strong> <a href="http://www.todowp.org/hacer-que-wordpress-envie-un-correo-cuando-haya-algun-problema-con-la-base-de-datos/" target="_blank">Todo WordPress</a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/recibir-un-aviso-por-mail-si-falla-la-base-de-datos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pon un reproductor de MP3 en tu blog: MP3 Player Plugin</title>
		<link>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/</link>
		<comments>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:23:15 +0000</pubDate>
		<dc:creator>Toniface</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reproductor]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1294</guid>
		<description><![CDATA[De forma muy sencilla y gracias a este plugin: MP3 Player Plugin, podrás poner todos los reproductores de MP3 que quieras en tu web creando las listas de reproducción que quieras.
En primer lugar lo descargais desde WordPress.org. Para instalarlo, como siempre, descomprimimos mp3player.zip y lo subimos al directorio /wp-content/plugins/.
Dentro del Panel de control de nuestro [...]


]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">De forma muy sencilla y gracias a este plugin: <strong>MP3 Player Plugin</strong>, podrás poner todos los reproductores de MP3 que quieras en tu web creando las listas de reproducción que quieras.<br />
En primer lugar lo descargais desde <a href="http://wordpress.org/extend/plugins/mp3-player-plugin-for-wordpress/" target="_blank">WordPress.org</a>. Para instalarlo, como siempre, descomprimimos<strong> mp3player.zip</strong> y lo subimos al directorio <strong>/wp-content/plugins/</strong>.</p>
<p style="text-align: justify;">Dentro del <strong>Panel de control</strong> de nuestro WordPress vamos a <strong>Plugins</strong> y lo activamos.</p>
<p style="text-align: justify;">Ahora en <strong>Opciones</strong> veremos: <strong>MP3 Player Options</strong>. Allí dentro nos encontramos con todas las posibilidades de personalización y creación de players.</p>
<p style="text-align: justify;"><img class="alignnone size-large wp-image-1295" title="Mp3Player-Options-01" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-01-1024x388.jpg" alt="Mp3Player Options 01 1024x388 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="189" /></p>
<p style="text-align: justify;">En primer lugar nos muestra la carpeta por defecto para guardar nuestros mp3, que se llama<strong> mp3 </strong>y se encuentra en: <strong><code>/wp-content/plugins/mp3-player-plugin-for-wordpress/mp3/</code></strong></p>
<p style="text-align: justify;">Allí podemos poner nuestros MP3 para la lista de reproducción. Si queremos mas de un player con contenidos distintos en cada uno habremos de crear carpetas cada una con un nombre identificativo de la siguiente manera: <strong><code>wp-content/plugins/mp3-player-plugin-for-wordpress/nombre_directorio/</code></strong> y dentro de cada directorio pondremos los MP3 que deseamos en esa lista/player.</p>
<p style="text-align: justify;">En esta imagen vemos que podemos personalizar las <strong>dimensiones </strong>del player según el modelo escogido que es uno de estos:</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1297" title="Mp3Player-Options-03" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-03.jpg" alt="Mp3Player Options 03 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="211" /></p>
<p style="text-align: justify;">Podemos personalizar el <strong>color</strong>, pero tan solo varía el color de la <strong>barra de progreso y volumen</strong>.</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1296" title="Mp3Player-Options-02" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-02.jpg" alt="Mp3Player Options 02 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="167" /></p>
<p style="text-align: justify;">Luego encontramos una serie de Opciones como <strong>Show numbers </strong>(Mostrar número de canciones) <strong>Shuffle</strong> (para dar orden aleatorio) <strong>Autoplay</strong>, <strong>Alineación</strong>, <strong>Transparencia</strong>,  Mostrar <strong>Botón de Pop-Up</strong>,&#8230;</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1299" title="Mp3Player-Options-04" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-04.jpg" alt="Mp3Player Options 04 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="500" height="342" /></p>
<p style="text-align: justify;">Con estas opciones hemos definido nuestro player en el caso de que sea el único o el principal que, por ejemplo, podemos ubicar en el <strong>sidebar </strong>como widget. Para ello solo tenemos que ir a <strong>Apariencia-&gt;Widgets</strong> y colocarlo donde queramos arrastrándolo.</p>
<p style="text-align: justify;">También podemos situar el player en el lugar que deseemos de nuestras páginas o posts poniéndo este código</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1300" title="Mp3Player-Options-05" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-05.jpg" alt="Mp3Player Options 05 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="316" height="159" /></p>
<p style="text-align: justify;">Pero como ya hemos dicho, podemos crear todos los que deseemos e insertrlos donde convenga. Una vez hemos creado las carpetas con el contenido debemos crear el código para cada uno de los players. Las opciones y sus tags son:</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-1301" title="Mp3Player-Options-06" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2010/01/Mp3Player-Options-06.jpg" alt="Mp3Player Options 06 Pon un reproductor de MP3 en tu blog: MP3 Player Plugin" width="192" height="600" /></p>
<p style="text-align: justify;">El código que hemos de colocar donde queramos ha de ser similar a este:</p>
<p style="text-align: justify;"><strong><code>[mp3_embed blog_plyrs="3" playlistfolder="lol" transparent="no" colors="#408080" show="no" mp3wids=”280” mp3highs=”215”]</code></strong></p>
<p style="text-align: justify;"><strong><code>mp3_embed blog_plyrs</code></strong> indica el tipo de player (1 para el Baby, 2 para el Medium y 3 para el grande)</p>
<p style="text-align: justify;"><strong><code>playlistfolder</code></strong> indica la carpeta donde se encuentran los MP3 de ese player. En este caso la carpeta es <strong>lol</strong> y la ruta completa es <strong><code>/wp-content/plugins/mp3-player-plugin-for-wordpress/lol/</code></strong> aunque como veis solo hay que poner el nombre de la carpeta.</p>
<p style="text-align: justify;"><strong><code>transparen</code>t</strong> indica que no deseamos transparencia.</p>
<p style="text-align: justify;"><strong><code>colors</code> </strong>nos sirve para indicar en hexadecimal el color que deseamos pàra la barra de progreso y volumen. El código lo obtenemos fácilmente con el cuadro que hemnos comentado arriba. Ponemos el cursos sobre el color deseado y obtenemos el hexadecimal.</p>
<p style="text-align: justify;"><strong><code>show</code> </strong>nos señala en este caso que no debe mostrar los números de orden de los temas, ya que ya están escritos en el nombre del MP3 o simplemente porque mo lo deseamos.</p>
<p style="text-align: justify;"><strong><code>mp3wids</code></strong> nos sirve para declarar un tamaño de ancho diferente al estandard para el tipo de player seleccionado.<br />
<strong><code>mp3highs</code></strong> nos sirve para declarar un tamaño de alto diferente al estandard para el tipo de player seleccionado.</p>
<p style="text-align: justify;">Si ponemos mas de un player en la misma págibna o post hemos de usar la etiqueta<strong> id </strong>para diferenciarlos</p>
<p style="text-align: justify;">id=”1” id=”2”&#8230;</p>
<p style="text-align: justify;">Ahora ya podemos poner el código donde deseemos.</p>
<p style="text-align: justify;"><strong>Un par de detalles:</strong></p>
<p style="text-align: justify;">- No pongais <strong>acentos </strong>en los nombres de los MP3 ya que si no esas letras no os aparecerán.</p>
<p style="text-align: justify;">- En el nombre del directorio donde guardaremos los MP3 no podemos poner <strong>signos </strong>como el guión (-).</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/pon-un-reproductor-de-mp3-en-tu-blog-mp3-player-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: Utilizando el Plugin AStickyPostOrderER</title>
		<link>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/</link>
		<comments>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:09:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vídeo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1259</guid>
		<description><![CDATA[AStickyPostOrderER presenta el plugin para WordPress, incluyendo la configuración y las ideas para su uso.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=YpH7tn20&amp;width=640&amp;height=480" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.10" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="480" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.10" allowfullscreen="true" flashvars="guid=YpH7tn20&amp;width=640&amp;height=480"></embed></object></p>
<p><a href="http://wordpress.org/extend/plugins/astickypostorderer/">El plugin se puede encontrar en el repositorio wordpress.org aquí</a>.</p>
<h4>Idioma</h4>
<p>Inglés</p>
<h4>Productor</h4>
<p>Adam W Warner</p>
<h4>Altavoces</h4>
<p>Adam W Warner</p>
<h4>Fecha</h4>
<p>4 de noviembre 2009</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/tutorial-utilizando-el-plugin-astickypostorderer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realizar una actualización de WordPress</title>
		<link>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/</link>
		<comments>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 16:10:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Actualizaciones]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Vídeo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1234</guid>
		<description><![CDATA[En este tutorial verán cómo actualizar su instalación de WordPress de forma automática. El manejo es muy sencillo, sn emabrgo,  muchas personas regularmente se pregunta sobre cómo proceder.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">En este tutorial verán cómo actualizar su instalación de WordPress de forma automática. El manejo es muy sencillo, sn emabrgo,  muchas personas regularmente se pregunta sobre cómo proceder. Ahora resulta que WordPress está disponible en la versión 2.8.5, vean este vídeo.</p>
<h4 style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://v.wordpress.com/UOTzQuTu" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="350" src="http://v.wordpress.com/UOTzQuTu" allowfullscreen="true"></embed></object></h4>
<h4>Idioma</h4>
<p>Francés</p>
<h4>Productor</h4>
<p>Maigret</p>
<h4>Altavoces</h4>
<p>Maigret</p>
<h4>Fecha</h4>
<p>3 de noviembre 2009</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tutoriales/realizar-una-actualizacion-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como integrar un carrusel jQuery a WP, con tus últimos post</title>
		<link>http://www.guiawordpress.org/todos/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/</link>
		<comments>http://www.guiawordpress.org/todos/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 01:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[Nuevas]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[Posts]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1161</guid>
		<description><![CDATA[Si suelen diseñar themes Wordpress con frecuencia, no tengo dudas que en algún momento desearan innovar e intentaran implementar nuevas funcionalidades a la hora de presentar sus artículos en portada.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="alignnone size-full wp-image-1162" title="carruselwp" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/carruselwp.jpg" alt="carruselwp Como integrar un carrusel jQuery a WP, con tus últimos post" width="485" height="150" /></p>
<p align="justify">Si suelen diseñar themes Wordpress con frecuencia, no tengo dudas que en algún momento desearan innovar e intentaran implementar nuevas funcionalidades a la hora de presentar sus artículos en portada. <a href="http://www.envioenlaces.com/?http://armeda.com/how-to-create-a-jquery-carousel-with-wordpress-posts/" target="_blank">Create a jQuery Carousel with WordPress Posts,</a> es un tutorial que me pareció muy interesante, en el aprenderán paso a paso como Integrar un carrusel basado en jQuery en wordpress, el cual contendrá tus <strong>últimas entradas publicadas</strong>. Se explicara como configurar una categoría en particular, como instalar <a href="http://www.envioenlaces.com/?http://www.gimiti.com/kltan/wordpress/?p=46" target="_blank">jFlow</a> (un script muy liviano para generar los slide), como publicar y como personalizar todo una vez finalizado. El resultado es realmente muy bueno.</p>
<p>Ver <a href="http://www.envioenlaces.com/?http://demo.armeda.com/" target="_blank">Demo</a> &#8211; Enlace <a href="http://www.envioenlaces.com/?http://armeda.com/how-to-create-a-jquery-carousel-with-wordpress-posts/" target="_blank">Create a jQuery Carousel with WordPress Posts</a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/todos/como-integrar-un-carrusel-jquery-a-wp-con-tus-ultimos-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Añadir marcadores sociales a sus themes wordpress de forma manual.</title>
		<link>http://www.guiawordpress.org/todos/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/</link>
		<comments>http://www.guiawordpress.org/todos/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 01:07:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[amp]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[botones]]></category>
		<category><![CDATA[conti]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[eje]]></category>
		<category><![CDATA[esto]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[lle]]></category>
		<category><![CDATA[marca]]></category>
		<category><![CDATA[marcadores]]></category>
		<category><![CDATA[muchos sitios]]></category>
		<category><![CDATA[nada]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[plataformas]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[stumbleupon]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Título]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[unos]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1132</guid>
		<description><![CDATA[Si en algún momento han deseado añadir marcadores sociales a sus plataformas wordpress, pero personalizados por ustedes mismos, sin la utilización de plugin, créanme que nos es nada complicado, y a continuación podrán leer dos artículos que los ayudara a entender cómo hacerlo.


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial0.jpg"><img class="alignnone size-full wp-image-1134" title="linksocial0" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/linksocial0.jpg" alt="linksocial0 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p>Si en algún momento han deseado añadir marcadores sociales a sus plataformas wordpress, pero personalizados por ustedes mismos, sin la utilización de plugin, créanme que nos es nada complicado, y a continuación podrán leer dos artículos que los ayudara a entender cómo hacerlo.</p>
<p style="text-align: center">
<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial1.jpg"><img class="size-full wp-image-1136 aligncenter" title="linksocial" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/linksocial1.jpg" alt="linksocial1 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p><a href="http://www.envioenlaces.com/?http://thedesigned.com/2009/06/13/plain-text-social-bookmark-links-for-wordpress/" target="_blank">Plain text social bookmark links for WordPress</a>, este artículo le da el código de texto necesario para muchos sitios sociales diferentes, como Digg, Facebook, Reddit, Delicious, y muchos más.  Con los cuales podrán personalizar aun más sus sitios basados en WordPress. Si no sabian que URL utilizar, esto los sacara de toda duda generada.</p>
<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/linksocial21.jpg"><img class="size-full wp-image-1138 aligncenter" title="linksocial2" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/linksocial21.jpg" alt="linksocial21 Añadir marcadores sociales a sus themes wordpress de forma manual." width="485" height="150" /></a></p>
<p style="text-align: center">
<p><a href="http://www.envioenlaces.com/?http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/" target="_blank">Add social bookmarks to your wordpress theme</a>, un breve tutorial que les explicara como añadir de forma manual botones bookmarking sociales (Delicious, Reddit, Digg, StumbleUpon, Twitter y Facebook) a sus themes wordpress. Todos estos sitios proporcionan una manera simple de crear estos botones, Por ejemplo, para agregar un artículo a Reddit, la dirección es: http://www.reddit.com/submit?url=THE-URL&amp;title=THE-TITLE, como pueden ver, sólo tiene que rellenar la dirección URL y el título del artículos especifico. Pueden serles muy útiles estos tips, para tener muy mayor control, sin utilizar algunos plugin.  Leer tutorial: <a href="http://www.envioenlaces.com/?http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/" target="_blank">Add social bookmarks </a></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/todos/anadir-marcadores-sociales-a-sus-themes-wordpress-de-forma-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiando el Avatar por default en WordPress</title>
		<link>http://www.guiawordpress.org/todos/cambiando-el-avatar-por-default-en-wordpress/</link>
		<comments>http://www.guiawordpress.org/todos/cambiando-el-avatar-por-default-en-wordpress/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:47:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[cambian]]></category>
		<category><![CDATA[Comentarios]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[Imagen]]></category>
		<category><![CDATA[lo primero]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Personalizar]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unos]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1110</guid>
		<description><![CDATA[Los custom fields ó campos personalizados que trae WordPress nos ofrecen una cantidad infinita de posibilidades, podemos mostrar cualquier cosa que deseemos


]]></description>
			<content:encoded><![CDATA[<p>Comencemos con este pequeño tutorial, se trata de cambiar el avatar que nos muestra por default WordPress, como bien saben WordPress integra el servicio de <a href="http://www.envioenlaces.com/?http://gravatar.com">gravatar</a> para mostrar una pequeña imagen en los comentarios ó en donde deseen mostrar información sobre el usuario&#8230; así es que vamos a empezar.</p>
<p>Lo primero que haremos será elegir qué imagen quieren poner como nuevo gravatar, recuerden que esta imagen se mostrará unicamente para los usuarios que no tengan su cuenta.</p>
<p><span id="more-3333"> </span></p>
<p>Aquí les dejo algunos que pueden usar, habrá que ajustarles el tamaño dependiendo de cuál usen en su theme&#8230; si es de 50&#215;50, 100&#215;100, etc&#8230; esta imagen la guardamos de preferencia dentro de la carpeta <strong>images</strong> en nuestro theme, pero sino pueden guardarla donde uds. deseen.</p>
<p class="center"><img class="alignnone size-full wp-image-1114" title="avatar1" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar1.png" alt="avatar1 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1115" title="avatar2" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar2.png" alt="avatar2 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1116" title="avatar4" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar4.png" alt="avatar4 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1117" title="avatar3" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar3.png" alt="avatar3 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1119" title="avatar5" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar51.png" alt="avatar51 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1121" title="avatar6" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar61.png" alt="avatar61 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1122" title="avatar7" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar7.png" alt="avatar7 Cambiando el Avatar por default en WordPress" width="128" height="128" /> <img class="alignnone size-full wp-image-1123" title="avatar8" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/avatar8.png" alt="avatar8 Cambiando el Avatar por default en WordPress" width="128" height="128" /></p>
<p>Ok, ahora vamos a abrir el archivo <strong>functions.php</strong> que se encuentra dentro de nuestro theme, sino lo tienen pueden crear uno.</p>
<p>En este archivo agregamos las siguienes líneas</p>
<div class="igBar"><span id="lphp-1"><a onclick="javascript:showPlainTxt('php-1'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * CAMBIAR EL AVATAR POR DEFAULT</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_filter<span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8216;avatar_defaults&#8217;</span>, <span style="color:#FF0000;">&#8216;newgravatar&#8217;</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> newgravatar <span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$avatar_defaults</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$myavatar</span> = get_bloginfo<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;template_directory&#8217;</span><span style="color:#006600; font-weight:bold;">)</span> . <span style="color:#FF0000;">&#8216;/images/avatar.png&#8217;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$avatar_defaults</span><span style="color:#006600; font-weight:bold;">[</span><span style="color:#0000FF;">$myavatar</span><span style="color:#006600; font-weight:bold;">]</span> = <span style="color:#FF0000;">&#8220;My new avatar&#8221;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <span style="color:#0000FF;">$avatar_defaults</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Listo ahora nos dirigimos a nuestro panel de administración y en la parte de <strong>discusión</strong> veremos nuestro nuevo avatar listo para usarse.</p>
<p style="text-align: center;"><img class="size-full wp-image-1113 aligncenter" title="discussion_settings_avatar" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/discussion_settings_avatar.png" alt="discussion settings avatar Cambiando el Avatar por default en WordPress" width="205" height="262" /></p>
<p>En otro tutorial veremos cómo hacer más grande el tamaño de nuestros avatars así como personalizar el listado de comentarios.</p>
<p class="buttons">


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/todos/cambiando-el-avatar-por-default-en-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Obtener el número de followers de Twitter en texto plano</title>
		<link>http://www.guiawordpress.org/todos/obtener-el-numero-de-followers-de-twitter-en-texto-plano/</link>
		<comments>http://www.guiawordpress.org/todos/obtener-el-numero-de-followers-de-twitter-en-texto-plano/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:22:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[Directorio]]></category>
		<category><![CDATA[Encontrar]]></category>
		<category><![CDATA[esto]]></category>
		<category><![CDATA[Función]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[sencillo]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1095</guid>
		<description><![CDATA[No le hagan mucho caso a mi versión zombie del pajarraco de Twitter, solo quería buscar una manera "personal" de ilustrar el post. Por otro lado, esta función ha sido creada por Peter Ivanov y resulta muy útil y sencillo poder implementarlo en nuestro WP..


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.guiawordpress.org/wp-content/uploads/2009/11/twitter_followers.png"><img class="size-full wp-image-1097 aligncenter" title="twitter_followers" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/twitter_followers.png" alt="twitter followers Obtener el número de followers de Twitter en texto plano" width="583" height="150" /></a></p>
<p>No le hagan mucho caso a mi versión zombie del pajarraco de Twitter, solo quería buscar una manera &#8220;personal&#8221; de ilustrar el post. Por otro lado, esta función ha sido creada por <a href="http://www.envioenlaces.com/?http://www.ooyes.net/">Peter Ivanov</a> y resulta muy útil y sencillo poder implementarlo en nuestro WP..</p>
<p>En fin, el único valor que nos pide esta función es el nombre de usuario, si han visto <a href="http://www.guiawordpress.org/author/JFmonin/">mi perfil</a>, el de <a href="http://www.guiawordpress.org/author/pablocs/">Pablo</a> que han publicado en este blog, se darán cuenta que en la parte de abajo se muestra el <strong># de followers</strong> que tiene cada uno. Incluso para los colaboradores, en su perfil encontrarán el campo para poner sus <em>tweets</em> recientes y todo lo demás.</p>
<p><span id="more-3423"> </span></p>
<p>Ok, es muy sencillo lo que vamos a hacer es abrir el archivo <strong>functions.php</strong> de nuestro theme, recuerden que si no tienen uno pueden crearlo. En este archivo ponemos el siguiente código:</p>
<div class="igBar"><span id="lphp-1"><a onclick="javascript:showPlainTxt('php-1'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * Fetch the number of followers from twitter api</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @author Peter Ivanov </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @copyright    http://www.ooyes.net</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @version    0.2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @link http://www.ooyes.net</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @param string $username</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * @return string</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$username</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = CACHEDIR . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><a href="http://www.php.net/is_file"><span style="color:#000066;">is_file</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span> == <span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file_time</span> = <a href="http://www.php.net/strtotime"><span style="color:#000066;">strtotime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8216;1984-01-11 07:15&#8242;</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file_time</span> = <a href="http://www.php.net/filemtime"><span style="color:#000066;">filemtime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$now</span> = <a href="http://www.php.net/strtotime"><span style="color:#000066;">strtotime</span></a> <span style="color:#006600; font-weight:bold;">(</span> <a href="http://www.php.net/date"><span style="color:#000066;">date</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#FF0000;">&#8216;Y-m-d H:i:s&#8217;</span> <span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_call</span> = <span style="color:#0000FF;">$cache_file_time</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$difference</span> = <span style="color:#0000FF;">$now</span> &#8211; <span style="color:#0000FF;">$api_call</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_time_seconds</span> = <span style="color:#CC66CC;color:#800000;">1800</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$difference</span>&gt;= <span style="color:#0000FF;">$api_time_seconds</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$api_page</span> = <span style="color:#FF0000;">&#8216;http://twitter.com/users/show/&#8217;</span> . <span style="color:#0000FF;">$username</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$xml</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$api_page</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$profile</span> = <span style="color:#000000; font-weight:bold;">new</span> SimpleXMLElement <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$xml</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$count</span> = <span style="color:#0000FF;">$profile</span>-&gt;<span style="color:#006600;">followers_count</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">(</span><a href="http://www.php.net/is_file"><span style="color:#000066;">is_file</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span> == <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/unlink"><span style="color:#000066;">unlink</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/touch"><span style="color:#000066;">touch</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">file_put_contents <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span>, <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$count</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$cache_file</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/strval"><span style="color:#000066;">strval</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$count</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Ok, hasta ahí todo bien&#8230; ahora vamos a modificarlo un poco, en la <strong>línea 13</strong> nos encontraremos con esto:</p>
<div class="igBar"><span id="lphp-2"><a onclick="javascript:showPlainTxt('php-2'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = CACHEDIR . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Si lo dejamos así puede funcionar sin problemas, pero nuestro fichero se guardará en &#8220;root&#8221; y no me parece muy amigable, entonces lo que haremos será guardar este fichero en una carpeta llamada <em>cache </em>dentro del directorio de nuestro theme.</p>
<p>Entonces creamos una carpeta llamada cache dentro de nuestro theme, recuerden que debe tener los permisos 777 y el código lo reemplazamos por el siguiente:</p>
<div class="igBar"><span id="lphp-3"><a onclick="javascript:showPlainTxt('php-3'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$cache_file</span> = <span style="color:#FF0000;">&#8220;wp-content/themes/mi-theme/cache/&#8221;</span> . <span style="color:#FF0000;">&#8216;twitter_followers_counter_&#8217;</span> . <a href="http://www.php.net/md5"><span style="color:#000066;">md5</span></a> <span style="color:#006600; font-weight:bold;">(</span> <span style="color:#0000FF;">$username</span> <span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Donde <strong>mi-theme</strong> es el nombre de la carpeta de su theme.</p>
<p>Lo siguiente que haremos será mostrarlo en WordPress, mmm&#8230; abrimos el archivo <strong>sidebar.php</strong> y en el lugar que ustedes decidan ponemos lo siguiente:</p>
<div class="igBar"><span id="lphp-4"><a onclick="javascript:showPlainTxt('php-4'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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/print"><span style="color:#000066;">print</span></a> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;NOMBRE_DE_USUARIO&#8217;</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> Followers</div>
</li>
</ol>
</div>
</div>
</div>
<p>Yo lo tengo de la siguiente manera:</p>
<div class="igBar"><span id="lphp-5"><a onclick="javascript:showPlainTxt('php-5'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;a href=<span style="color:#FF0000;">&#8220;http://twitter.com/guiawordpress&#8221;</span> title=<span style="color:#FF0000;">&#8220;&lt;?php _e(&#8217;Follow me on Twitter&#8217;,'ifx&#8217;);?&gt;&#8221;</span>&gt;&lt;strong&gt;&lt;?php  <a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> twitter_followers_counter<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;<span style="color:#FF0000;">guiawordpress</span>&#8216;</span><span style="color:#006600; font-weight:bold;">)</span> ?&gt;&lt;/strong&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> _e<span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8216;followers&#8217;</span>,<span style="color:#FF0000;">&#8216;ifx&#8217;</span><span style="color:#006600; font-weight:bold;">)</span>;?&gt;&lt;/a&gt;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Listo! Otra función más lista para agregar a nuestros themes, por cierto si quieren les dejo mi versión <em>alternativa bizarra zombie</em></p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/todos/obtener-el-numero-de-followers-de-twitter-en-texto-plano/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acortar URL’s automaticamente usando ITO.mx sobre WordPress</title>
		<link>http://www.guiawordpress.org/tips/acortar-url%e2%80%99s-automaticamente-usando-ito-mx-sobre-wordpress/</link>
		<comments>http://www.guiawordpress.org/tips/acortar-url%e2%80%99s-automaticamente-usando-ito-mx-sobre-wordpress/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:03:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Crear]]></category>
		<category><![CDATA[esto]]></category>
		<category><![CDATA[Función]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[sencillo]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[urls]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1086</guid>
		<description><![CDATA[ITO es un gran servicio para acortar url's largas para poder usarlas en twitter, facebook o donde ustedes crean más convenientes, además que ha sido mencionado como sitio del día en Merca2.0.


]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.envioenlaces.com/?http://ito.mx/">ITO</a> es un gran servicio para acortar url&#8217;s largas para poder usarlas en twitter, facebook o donde ustedes crean más convenientes, además que ha sido mencionado como <a href="http://www.envioenlaces.com/?http://www.merca20.com/el-sitio-del-dia-ito-mx/">sitio del día</a> en Merca2.0.</p>
<p>En fin, después de esta breve introducción, ahora veremos cómo se puede acortar una url de manera automática directamente en nuestro WordPress y mandarla a twitter o permitir compartirla.</p>
<div class="alert">En hora buena! ya es posible asignar una cuenta o ip al acortar una url para que nos aparezca en nuestro panel de ITO</div>
<p><span id="more-3512"> </span></p>
<h3>functions.php</h3>
<p>Abrimos el archivo <strong> functions.php</strong> de nuestro theme, sino tienen recuerden que hay que crearlo, ahora en alguna parte de este archivo ponemos lo siguiente:</p>
<div class="igBar"><span id="lphp-1"><a onclick="javascript:showPlainTxt('php-1'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;"> * GENERAR ITO URL </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> getITOurl<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$url</span><span style="color:#006600; font-weight:bold;">)</span> <span style="color:#006600; font-weight:bold;">{</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$itomx</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8220;http://ito.mx/?module=ShortURL&amp;file=Add&amp;mode=API&amp;url=&#8221;</span>.<span style="color:#0000FF;">$url</span><span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <span style="color:#0000FF;">$itomx</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">}</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Si quieren ligar los enlaces generados a una cuenta en específico le añaden dentro de ito.mx/?module etc&#8230;</p>
<div class="codeblock">
<pre><code>&amp;to_user=login</code></pre>
</div>
<p>Si lo desean aignar a una IP</p>
<div class="codeblock">
<pre><code>&amp;to_ip=123.45.67.8</code></pre>
</div>
<p>Por ejemplo para asignarlo a un usuario quedaría algo así</p>
<div class="igBar"><span id="lphp-2"><a onclick="javascript:showPlainTxt('php-2'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$itomx</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">(</span><span style="color:#FF0000;">&#8220;http://ito.mx/?module=ShortURL&amp;to_user=MI_USUARIO&amp;file=Add&amp;mode=API&amp;url=&#8221;</span>.<span style="color:#0000FF;">$url</span><span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Creo que aún le faltaría algún ID de verificación para que no se adjunten otras urls que no deseemos a nuestra cuenta, pero ya esto es un gran paso.</p>
<h3>Obtener la url</h3>
<p>Para escupir la url es muy sencillo solo tienen que mandar a llamar la función de esta manera dentro de su archivo <strong>single.php</strong> o <strong>sidebar.php</strong>:</p>
<div class="igBar"><span id="lphp-3"><a onclick="javascript:showPlainTxt('php-3'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#0000FF;">$iurl</span> = getITOurl<span style="color:#006600; font-weight:bold;">(</span>get_permalink<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">)</span><span style="color:#006600; font-weight:bold;">)</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>Ahora para mostrarla solo tenemos que hacerle un echo a iurl</p>
<div class="igBar"><span id="lphp-4"><a onclick="javascript:showPlainTxt('php-4'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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> <span style="color:#0000FF;">$iurl</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
</ol>
</div>
</div>
</div>
<h3>Integrar en el theme</h3>
<p>Muy bien, con eso generaremos nuestra url ahora nos hace falta mandarla a llamar dentro de nuestro theme, para eso abrimos el archivo <strong>single.php</strong>, tenemos 2 posibles opciones para esto, una es ponerlo dentro de un campo de texto y la otra será un enlace que enviará el enlace a twitter.</p>
<h4>Usarlo dentro de un campo de texto</h4>
<div class="igBar"><span id="lphp-5"><a onclick="javascript:showPlainTxt('php-5'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$iurl</span> = getITOurl<span style="color:#006600; font-weight:bold;">(</span>get_permalink<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">)</span><span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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> <span style="color:#FF0000;">&#8216;&lt;label for=&#8221;ito_url&#8221;&gt;Comparte este post&lt;/label&gt;&lt;input id=&#8221;ito_url&#8221; name=&#8221;ito_url&#8221; size=&#8221;35&#8243; value=&#8221;&#8216;</span>.<span style="color:#0000FF;">$iurl</span>.<span style="color:#FF0000;">&#8216;&#8221; type=&#8221;text&#8221;&gt;&#8217;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<h4>Enlace para enviar a twitter</h4>
<div class="igBar"><span id="lphp-6"><a onclick="javascript:showPlainTxt('php-6'); return false;" href="#">MOSTRAR TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span></p>
<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; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$iurl</span> = getITOurl<span style="color:#006600; font-weight:bold;">(</span>get_permalink<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">)</span><span style="color:#006600; font-weight:bold;">)</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<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> <span style="color:#FF0000;">&#8216;&lt;a href=&#8221;http://twitter.com/home?status=Leyendo:%20&#8242;</span>.get_the_title<span style="color:#006600; font-weight:bold;">(</span><span style="color:#0000FF;">$post</span>-&gt;<span style="color:#006600;">ID</span><span style="color:#006600; font-weight:bold;">)</span>.<span style="color:#FF0000;">&#8216;%20&#8242;</span>.<span style="color:#0000FF;">$iurl</span>.<span style="color:#FF0000;">&#8216;&#8221; title=&#8221;Enviala a Twitter!&#8221;&gt;Enviar a Twitter&lt;/a&gt;&#8217;</span>;</div>
</li>
</ol>
</div>
</div>
</div>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tips/acortar-url%e2%80%99s-automaticamente-usando-ito-mx-sobre-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Como usar los campos personalizados de WordPress</title>
		<link>http://www.guiawordpress.org/tips/como-usar-los-campos-personalizados-de-wordpress/</link>
		<comments>http://www.guiawordpress.org/tips/como-usar-los-campos-personalizados-de-wordpress/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 23:57:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Todos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Campos Personalizados]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[Fácil]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress.org]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.guiawordpress.org/?p=1083</guid>
		<description><![CDATA[InfectedFX ha cogido con fuerza su nueva etapa, y hoy nos sorprenden con un tutorial muy bien explicado de como usar los campos personalizados (o custom fields) en WordPress, con un par de ejemplos prácticos muy sencillitos y fáciles de aplicar. No te lo pierdas.


]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1084 alignleft" title="Guía de como usar los campos personalizados" src="http://www.guiawordpress.org/index.php?feedimage=wp-content/uploads/2009/11/mood_feliz.png" alt="Guía de como usar los campos personalizados" width="100" height="100" /></p>
<p><strong>InfectedFX</strong> ha cogido con fuerza su nueva etapa, y hoy nos sorprenden <a href="http://www.envioenlaces.com/?http://infectedfx.net/como-usar-los-custom-fields-en-wordpress/2009/">con un tutorial</a> muy bien explicado de <strong>como usar los campos personalizados</strong> (o custom fields) en WordPress, con un par de ejemplos prácticos muy sencillitos y fáciles de aplicar. No te lo pierdas.</p>


<p></p>]]></content:encoded>
			<wfw:commentRss>http://www.guiawordpress.org/tips/como-usar-los-campos-personalizados-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
