<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>WordPress Hacks</title> <atom:link href="http://wordpress-hacks.com/feed" rel="self" type="application/rss+xml" /><link>http://wordpress-hacks.com</link> <description>Tips y consejos de WordPress en español</description> <lastBuildDate>Fri, 23 Jul 2010 11:36:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>robots.txt para WordPress</title><link>http://wordpress-hacks.com/robots-txt-para-wordpress.php</link> <comments>http://wordpress-hacks.com/robots-txt-para-wordpress.php#comments</comments> <pubDate>Fri, 23 Jul 2010 11:36:18 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Noarchive]]></category> <category><![CDATA[Noindex]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=615</guid> <description><![CDATA[En innumerables ocasiones he leído en foros consultas, dudas y problemas relacionados al robots.txt, también un par de veces me han preguntado y la respuesta es la misma que suelo dar la mayoría de las veces que me preguntan algo sobre un sitio: DEPENDE. Para entender que robots.txt es el que más se ajusta a [...]]]></description> <content:encoded><![CDATA[<p>En innumerables ocasiones he leído en foros consultas, dudas y problemas relacionados al <strong>robots.txt</strong>, también un par de veces me han preguntado y la respuesta es la misma que suelo dar la mayoría de las veces que me preguntan algo sobre un sitio: DEPENDE.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/07/robot.txt.jpg" alt="" title="robot.txt" width="151" height="97" class="alignnone size-full wp-image-619" /></div><p>Para entender que robots.txt es el que más se ajusta a nuestras necesidades, primero hay que entender en que consiste, una breve explicación:</p><blockquote><p>El protocolo de robots.txt es un método para evitar que ciertos bots que analizan los sitios Web agreguen información innecesaria a los resultados de búsqueda.(<a
rel="nofollow" href="http://es.wikipedia.org/wiki/Est%C3%A1ndar_de_exclusi%C3%B3n_de_robots">Wikipedia</a>)</p></blockquote><p>Básicamente un robots.txt consiste en indicar el robot y lo que queremos que haga, el robot se indica como &#8220;User-agent: nombre del bot&#8221; y las órdenes &#8220;Allow :&#8221;, &#8220;Disallow :&#8221;</p><p>Por ejemplo si queremos que ningún robot pueda acceder al directorio &#8220;privado&#8221; vamos a poner lo siguiente:<br
/> <code><br
/> User-agent: *<br
/> Disallow : /privado/<br
/> </code><br
/> El caracter &#8220;*&#8221; es usado como comodín para indicar todos los robots, por ejemplo si quisiéramos que solo el robot de Yahoo no ingrese a la carpeta &#8220;privado&#8221; vamos a poner lo siguiente:<br
/> <code><br
/> User-agent: Slurp<br
/> Disallow : /privado/<br
/> </code><br
/> Hace bastante tiempo, WordPress (o sus desarrolladores) eran medios torpe y no incluían las meta tags noindex y nofollow en el área de administración y había que decirle al bot que no indexe el login por ejemplo, hoy ya eso no es un problema.</p><p>Como dije al principio, el robots.txt depende de que necesitemos y de las preferencias nuestras, por ejemplo a mi no me gusta que se indexe el archivo (2009/03), ni tampoco lo de autor (/author/*), ni las páginas (/page/*).</p><p>En el robots.txt también podemos incluir la dirección de nuestro sitemap del modo &#8220;Sitemap: http://dominio.com/sitemap.xml&#8221;</p><p>La orden &#8220;Allow&#8221; no suele ser muy utilizada, en mi caso la uso si creo algún directorio y quiero que google lo indexe más rápido, o para las categorías, tags e imagenes, aunque a veces no es necesario.</p><p>Muchos siguen teniendo en cuenta <a
href="http://sigt.net/archivo/robotstxt-para-wordpress.xhtml">robots.txt de hace 3 años</a> llenos de código innecesario, mi recomendación es que hagan un robot que sea lo más corto posible, como por ejemplo:<br
/> <code><br
/> User-agent: *<br
/> Disallow:<br
/> Sitemap: http://dominio.com/sitemap.xml<br
/> </code><br
/> Tengan en cuenta que los bots son case sensitive, esto quiere decir que no es lo mismo decirles que un directorio se llama &#8220;Privado&#8221; o &#8220;privado&#8221;.</p><p>Pueden encontrar información más detallada sobre los robots.txt en la <a
href="http://www.robotstxt.org/">web de los robots</a>.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/robots-txt-para-wordpress.php/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>WordPress 3, fechas en español</title><link>http://wordpress-hacks.com/wordpress-3-fechas-en-espanol.php</link> <comments>http://wordpress-hacks.com/wordpress-3-fechas-en-espanol.php#comments</comments> <pubDate>Thu, 17 Jun 2010 23:53:16 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Hacks]]></category> <category><![CDATA[WordPress 3]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=604</guid> <description><![CDATA[Algunos renegados usamos WordPress en inglés, yo particularmente porque me siento más cómodo, y cada uno tendrá su motivo, pero con wp en inglés las fechas también están en inglés y eso queda feo si escribimos blogs en español y nuestros visitantes son de habla hispana, por lo que, traducir y subir el locale.php es [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/06/Milestone-WordPress-3.png" alt="" title="Milestone WordPress 3" width="617" height="138" class="alignnone size-full wp-image-606" /></p><p>Algunos renegados usamos WordPress en inglés, yo particularmente porque me siento más cómodo, y cada uno tendrá su motivo, pero con wp en inglés las fechas también están en inglés y eso queda feo si escribimos blogs en español y nuestros visitantes son de habla hispana, por lo que, traducir y subir el locale.php es la mejor opción para poner <a
href="http://wordpress-hacks.com/pasar-wordpress-a-espanol-modificando-el-localephp.php">WordPress en español</a>, ahora como cambió el archivo (locale.php), lo he traducido de nuevo para que puedan bajarlo y subirlo en /wp-includes, si lo descargan, deben renombrar locale.txt a locale.php, o si no pueden copiarlo y crear un nuevo locale.php y pegarlo.<br
/> <span
id="more-604"></span></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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
</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: #009933; font-style: italic;">/**
 * Date and Time Locale object
 *
 * @package WordPress
 * @subpackage i18n
 */</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Class that loads the calendar locale.
 *
 * @since 2.1.0
 */</span>
<span style="color: #000000; font-weight: bold;">class</span> WP_Locale <span style="color: #009900;">&#123;</span>
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the full weekday names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the one character weekday names.
	 *
	 * There is a hack to make sure that Martes and Jueves, as well
	 * as Domingo and Sabado don't conflict. See init() method for more.
	 *
	 * @see WP_Locale::init() for how to handle the hack.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday_initial</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the abbreviated weekday names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$weekday_abbrev</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the full month names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$month</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for the abbreviated month names.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$month_abbrev</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Stores the translated strings for 'am' and 'pm'.
	 *
	 * Also the capalized versions.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$meridiem</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * The text direction of the locale language.
	 *
	 * Default is left to right 'ltr'.
	 *
	 * @since 2.1.0
	 * @var string
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$text_direction</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ltr'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Imports the global version to the class property.
	 *
	 * @since 2.1.0
	 * @var array
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$locale_vars</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'text_direction'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Sets up the translated strings and object properties.
	 *
	 * The method creates the translatable strings for various
	 * calendar elements. Which allows for specifying locale
	 * specific calendar names and text direction.
	 *
	 * @since 2.1.0
	 * @access private
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// The Weekdays</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The first letter of each day.  The _%day%_initial suffix is a hack to make</span>
		<span style="color: #666666; font-style: italic;">// sure the day initials are unique.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'D_Domingo_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'L_Lunes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>   <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M_Martes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M_Miercoles_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'J_Jueves_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'V_Viernes_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: one-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'S_Sabado_initial'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$weekday_</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$weekday_initial_</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/_.+_initial$/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$weekday_initial_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Abbreviations for each day.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Domingo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Dom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lunes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lun'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Martes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>   <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Miercoles'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mie'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jueves'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jue'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Viernes'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Vie'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabado'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the weekday */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sab'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The Months</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'01'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enero'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'02'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Febrero'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'03'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Marzo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'04'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abril'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'05'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mayo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'06'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Junio'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'07'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Julio'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'08'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Agosto'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'09'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Septiembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Octubre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'11'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Noviembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'12'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: month name */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Diciembre'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Abbreviations for each month. Uses the same hack as above to get around the</span>
		<span style="color: #666666; font-style: italic;">// 'Mayo' duplication.</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enero'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ene_Enero_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Febrero'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Feb_Febrero_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Marzo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mar_Marzo_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abril'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Abr_Abril_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mayo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'May_Mayo_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Junio'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jun_Junio_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Julio'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jul_Julio_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Agosto'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ago_Agosto_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Septiembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sep_Septiembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Octubre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Oct_Octubre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Noviembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nov_Noviembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Diciembre'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #666666; font-style: italic;">/* translators: three-letter abbreviation of the month */</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Dic_Diciembre_abbreviation'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$month_</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$month_abbrev_</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$month_</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/_.+_abbreviation$/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$month_abbrev_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// The Meridiems</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'am'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'am'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pm'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AM'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PM'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PM'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Numbers formatting</span>
		<span style="color: #666666; font-style: italic;">// See http://php.net/number_format</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* translators: $thousands_sep argument for http://php.net/number_format, default is , */</span>
		<span style="color: #000088;">$trans</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_thousands_sep'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">number_format</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'thousands_sep'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_thousands_sep'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$trans</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">','</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$trans</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* translators: $dec_point argument for http://php.net/number_format, default is . */</span>
		<span style="color: #000088;">$trans</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_decimal_point'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">number_format</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'decimal_point'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'number_format_decimal_point'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$trans</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'.'</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$trans</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Import global locale vars set during inclusion of $locale.php.</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">locale_vars</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$var</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: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
				<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #000088;">$var</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the full translated weekday word.
	 *
	 * Week starts on translated Domingo and can be fetched
	 * by using 0 (zero). So the week starts with 0 (zero)
	 * and ends on Sabado with is fetched by using 6 (six).
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param int $weekday_number 0 for Domingo through 6 Sabado
	 * @return string Full translated weekday
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_number</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_number</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the translated weekday initial.
	 *
	 * The weekday initial is retrieved by the translated
	 * full weekday word. When translating the weekday initial
	 * pay attention to make sure that the starting letter does
	 * not conflict.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $weekday_name
	 * @return string
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday_initial<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the translated weekday abbreviation.
	 *
	 * The weekday abbreviation is retrieved by the translated
	 * full weekday word.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $weekday_name Full translated weekday word
	 * @return string Translated weekday abbreviation
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_weekday_abbrev<span style="color: #009900;">&#40;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$weekday_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve the full translated month by month number.
	 *
	 * The $month_number parameter has to be a string
	 * because it must have the '0' in front of any number
	 * that is less than 10. Starts from '01' and ends at
	 * '12'.
	 *
	 * You can use an integer instead and it will add the
	 * '0' before the numbers less than 10 for you.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string|int $month_number '01' through '12'
	 * @return string Translated full month name
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_month<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_number</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #009900;">&#91;</span>zeroise<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_number</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve translated version of month abbreviation string.
	 *
	 * The $month_name parameter is expected to be the translated or
	 * translatable version of the month.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $month_name Translated month to get abbreviated version
	 * @return string Translated abbreviated month
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_month_abbrev<span style="color: #009900;">&#40;</span><span style="color: #000088;">$month_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$month_name</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Retrieve translated version of meridiem string.
	 *
	 * The $meridiem parameter is expected to not be translated.
	 *
	 * @since 2.1.0
	 * @access public
	 *
	 * @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version.
	 * @return string Translated version
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> get_meridiem<span style="color: #009900;">&#40;</span><span style="color: #000088;">$meridiem</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">meridiem</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$meridiem</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * Global variables are deprecated. For backwards compatibility only.
	 *
	 * @deprecated For backwards compatibility only.
	 * @access private
	 *
	 * @since 2.1.0
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> register_globals<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday'</span><span style="color: #009900;">&#93;</span>         <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday_initial'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_initial</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'weekday_abbrev'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">weekday_abbrev</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'month'</span><span style="color: #009900;">&#93;</span>           <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'month_abbrev'</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">month_abbrev</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009933; font-style: italic;">/**
	 * PHP4 style constructor which calls helper methods to set up object variables
	 *
	 * @uses WP_Locale::init()
	 * @uses WP_Locale::register_globals()
	 * @since 2.1.0
	 *
	 * @return WP_Locale
	 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> WP_Locale<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register_globals</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #009933; font-style: italic;">/**
	 * Checks if current locale is RTL.
	 *
	 * @since 3.0.0
	 * @return bool Whether locale is RTL.
	 */</span>
	 <span style="color: #000000; font-weight: bold;">function</span> is_rtl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'rtl'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">text_direction</span><span style="color: #339933;">;</span>
	 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Checks if current locale is RTL.
 *
 * @since 3.0.0
 * @return bool Whether locale is RTL.
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> is_rtl<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_locale</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$wp_locale</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_rtl</span><span style="color: #009900;">&#40;</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;">?&gt;</span></pre></td></tr></table></div><p><a
href="http://wordpress-hacks.com/wp-content/uploads/2010/06/locale.txt">Descargarlo</a>.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/wordpress-3-fechas-en-espanol.php/feed</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Permisos CHMOD &#8211; Lo que necesitás saber</title><link>http://wordpress-hacks.com/guia-chmod.php</link> <comments>http://wordpress-hacks.com/guia-chmod.php#comments</comments> <pubDate>Thu, 17 Jun 2010 11:01:08 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[permisos chmod 664]]></category> <category><![CDATA[permisos chmod 777]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=555</guid> <description><![CDATA[En muchos foros he leído sobre problemas en WordPress que son debido a falta de privilegios causados por permisos mal asignados a la hora de realizar un cambio (generalmente en el htaccess o en directorios de caché o uploads), y he indicado que deben dar CHMOD 777 al htaccess y muchos se quedan desorientados sin [...]]]></description> <content:encoded><![CDATA[<p>En muchos foros he leído sobre problemas en WordPress que son debido a falta de privilegios causados por permisos mal asignados a la hora de realizar un cambio (generalmente en el htaccess o en directorios de caché o uploads), y he indicado que deben dar CHMOD 777 al htaccess y muchos se quedan desorientados sin saber siquiera lo que es <strong>CHMOD</strong>, a continuación para los fieles que aún siguen leyendo, una explicación lo más breve que pude escribir.</p><p>En pocas palabras, podemos decir que CHMOD &#8211; abreviatura de change mode- sería <strong>el comando encargado de asignar permisos tanto a archivos como a directorios en sistemas tipo Unix</strong>.</p><h3>Permisos de archivos</h3><p>Los permisos de archivos básicos son 3:<br
/> <strong>r</strong> &#8211; read (lectura) Permite: leer un archivo o contenido de un directorio.<br
/> <strong>w</strong> &#8211; write (escritura) Permite: Escribir (modificar) o eliminar un archivo o directorio.<br
/> <strong>x</strong> &#8211; execute (ejecución) Permite: Ejecutar (acceder) a archivos o directorios.</p><p>La combinación de estos 3 permisos produce una cadena que se entiende como <strong>comando chmod</strong>.</p><h3>Usuarios</h3><p><strong>UGOA</strong> (clases de usuarios)</p><p>u &#8211; user (usuario) Dueño del archivo<br
/> g &#8211; group (grupo) Usuarios miembros del grupo de archivos.<br
/> o &#8211; others (otro) Resto de usuarios que no son ni user ni group (ejemplo: un usuario que entra a un sitio).<br
/> a &#8211; all (todos) Others, group y user.</p><p>Existen 2 clases o maneras de dar o asignar permisos a los usuarios: <strong>Modo Carácter</strong> y <strong>Modo Octal</strong>, generalmente en &#8220;lo que hacemos nosotros&#8221; utilizamos <a
rel="nofollow" href="http://es.wikipedia.org/wiki/Sistema_octal">Modo Octal</a> (Sistema de numeración de 8 dígitos).</p><h3>Notas para entendernos mejor</h3><p>*Los permisos chmod pueden estar expresados en números o en letras, las letras pueden estar en grupos de 3 caracteres cada uno, siendo el primer grupo el encargado de indicar los permisos de <em>owner</em>, el segundo de <em>group</em> y el último para <em>others</em>, mientras que mediante números podemos expresar un solo grupo de 3 dígitos que puede variar del 000 al 777 como vemos en el siguiente ejemplo:</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/06/rw-rw-r-.png" alt="" title="-rw-rw-r--" width="269" height="159" class="alignnone size-full wp-image-592" /></p><p>Arriba ingresé una serie de 10 caracteres y anteriormente les había comentado que eran 9 siempre que estemos hablando de letras, esto es por que el primer caracter (rojo) es el que indica si es un directorio (d), si es un archivo (-) o si es un link (l) (también pueden aparecer 3 caracteres más pero es muy poco probable), en el ejemplo estamos hablando de un archivo, si estuviéramos hablando de un directorio sería:<br
/> <span
id="more-555"></span><br
/> <img
src="http://wordpress-hacks.com/wp-content/uploads/2010/06/drw-rw-r-.png" alt="" title="drw-rw-r--" width="250" height="60" class="alignnone size-full wp-image-593" /></p><h3>Hablando de Números:</h3><p>Los permisos con los que trabajamos entonces, están separados generalmente por 1 grupo de 3 dígitos, dentro de estos 3 dígitos existen instrucciones para los tres grupos de usuarios y para cada uno existen 3 tipos de permisos de archivos, esto quiere decir que en 3 dígitos tenemos 8 modos e instrucciones diferentes:</p><p>*Permisos de archivos en letras y su ubicación: read(r) write(w) y execute(x). Esto quiere decir que una &#8220;r&#8221; en primer lugar permite leer el archivo, una &#8220;w&#8221; en segundo lugar significa que el archivo se puede escribir, y, finalmente, una &#8220;x&#8221; en tercer lugar significa que el archivo se puede ejecutar. Mientras que un &#8220;-&#8221; indica que no tiene ningún permiso.</p><p>*Categorías de usuarios: como en la imagen del primer ejemplo, el primer dígito es para el owner (user(u)), el segundo el grupo(group(g)), y el último de los 3 indica los permisos para el resto de usuarios (others(o)).</p><p>Ejemplos de permisos de archivo y su numeración:</p><p>Letras = Equivalente en números = Significado</p><div
class="wp_syntax"><div
class="code"><pre class="none" style="font-family:monospace;">--- = 0 = sin acceso
--x = 1 = ejecutar
-w- = 2 = escribir
-wx = 3 = escribir y ejecutar
r-- = 4 = leer
r-x = 5 = leer y ejecutar
rw- = 6 = leer y escribir
rwx = 7 = leer, escribir y ejecutar</pre></div></div><p>Por lo que, si tenemos el siguiente archivo (index.php), en el cual actualmente tenemos permisos chmod 644, podemos entender que:</p><p>6 = lectura y escritura permitida al <strong>owner</strong>, ya que el owner está en primer lugar.<br
/> 4 = lectura para el <strong>group</strong> por estar en segundo lugar, ya que el 4 es &#8220;r&#8211;&#8221; y significa lectura.<br
/> 4 = lectura para <strong>others</strong> (usuarios), ya que como mencionaba anteriormente, el 4 es lectura y este por ser el último dígito del grupo de 3, pertenece a los permisos de others.</p><p><img
class="alignnone size-full wp-image-558" title="Atributos chmod" src="http://wordpress-hacks.com/wp-content/uploads/2010/06/Atributos-chmod.png" alt="" width="335" height="321" /></p><h3>Modificando mediante el comando CHMOD los permisos</h3><p>Es el momento de que empezemos a modificar los permisos de nuestros archivos en nuestro servidor o hosting, para poder ver y editar los permisos, en la mayoría de los clientes ftp solo basta con hacer clic derecho sobre el archivo o directorio e ir a &#8220;File permissions&#8221; o permisos de archivos.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/06/permisos.png" alt="" title="permisos" width="453" height="345" class="alignnone size-full wp-image-598" /></p><h3>Permisos chmod recomendados</h3><p>Recomiendo que todos los archivos tengan chmod 644, mientras que los directorios, 755 (a exclución del directorio de uploads y caché que deben tener 777).</p><h3>Para ampliar la idea de chmod</h3><p><a
href="http://catcode.com/teachmod/index.html">Catcode.com &#8211; Chmod Tutorial</a>.<br
/> <a
href="http://www.ignside.net/man/ftp/chmod.php">Ignside.net &#8211; CHMOD files, asignando permisos</a>.<br
/> <a
href="http://ss64.com/bash/chmod.html">Ss64.com &#8211; chmod MAN Page</a>.<br
/> <a
href="http://en.wikipedia.org/wiki/Chmod">Wikipedia</a>.</p><h3>Para terminar</h3><p>Seguramente me olvidé de varias cosas y este post tenga mucho por corregir, por lo que invito a todos los que quieran aportar algo para mejorarlo a dejar un comentario <img
src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/guia-chmod.php/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Mudar o mover un blog de hosting y no morir en el intento</title><link>http://wordpress-hacks.com/mudar-wordpress.php</link> <comments>http://wordpress-hacks.com/mudar-wordpress.php#comments</comments> <pubDate>Wed, 09 Jun 2010 23:25:20 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Tips]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=545</guid> <description><![CDATA[Hay situaciones en la vida de un escritor de internet en las que es necesario cambiar de hosting, mudarse de alojamiento, o como quieran llamarle, el asunto es que tenemos que irnos de donde estamos y tenemos que empezar una migración, junto a ello, la necesidad obviamente de no perder ni 1 sola imagen y [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_549" class="wp-caption aligncenter" style="width: 402px"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/06/mudanza.jpg" alt="" title="mudanza" width="392" height="551" class="size-full wp-image-549" /><p
class="wp-caption-text">La mudanza puede ser cruel algunas veces...</p></div><p>Hay situaciones en la vida de un escritor de internet en las que es necesario cambiar de hosting, mudarse de alojamiento, o como quieran llamarle, el asunto es que <strong>tenemos que irnos de donde estamos</strong> y <strong>tenemos que empezar una migración</strong>, junto a ello, la necesidad obviamente de no perder ni 1 sola imagen y mucho menos alguna visita, a continuación unos pocos consejos para que mudar un blog sea una cosa de unos minutos y no una complicación.<br
/> Antes que nada, como para todo lo que hagamos algún día en la www, <strong>vamos a necesitar backup</strong> de un par de cosas, pero primero de la base de datos, la mejor forma que he encontrado de hacerlo es desde phpMyAdmin. Para los que no tengan idea como hacer esto, <a
rel="nofollow" href="http://files.wordpress-hacks.com/exportar-importar-db.rar">hice un video</a> -ojo, bastante informal- en donde están los pasos.<br
/> Luego de terminar el bakup de la base de datos y haber chequeado que es válido, generalmente bajo estos archivos:<br
/> <strong>De /:</strong><br
/> wp-config.php<br
/> sitemap.xml<br
/> sitemap.xml.gz<br
/> .htaccess<br
/> favicon.ico<br
/> Archivos de verificación de google, yahoo, etc.</p><p>Todo lo que hay en wp-content (uploads, themes, plugins)</p><p>Una vez que tengo eso listo, paso a subir un WordPress limpio al nuevo servidor, todos los archivos menos la carpeta wp-content y el install.php que está en /wp-admin. Cuando termino subo el wp-content que tengo de backup y los archivos a /, verifico el wp-config para que no tenga problemas con la base de datos y voilá.</p><p>Estupid tip: siempre es importante trabajar con <a
href="http://www.opendns.com/">opendns</a> o <a
href="http://code.google.com/speed/public-dns/index.html">google public dns</a> (que no lo he usado) en estos casos, ya que podemos trabajar en el sitio al rato que cambiamos las dns en caso de ser un dominio genérico, aunque los .com.ar nunca tardan más de 30 horas en actualizar las dns.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/mudar-wordpress.php/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Listar posts de la misma categoría sin plugins</title><link>http://wordpress-hacks.com/listar-posts-de-la-misma-categoria.php</link> <comments>http://wordpress-hacks.com/listar-posts-de-la-misma-categoria.php#comments</comments> <pubDate>Tue, 27 Apr 2010 22:49:46 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Hacks]]></category> <category><![CDATA[listar categorias]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=532</guid> <description><![CDATA[Junto con Diego, el pibe que labura conmigo, estamos armando un sitio de ventas y necesitábamos listar otros posts de la misma categoría y no queríamos usar ningún plugin, a continuación el código: 1 2 3 4 5 6 7 8 &#60;?php if &#40; is_single&#40;&#41; &#41; &#123; // Si es un single post $cat = [...]]]></description> <content:encoded><![CDATA[<p>Junto con Diego, el pibe que labura conmigo, estamos armando un sitio de ventas y necesitábamos <strong>listar otros posts de la misma categoría</strong> y no queríamos usar ningún plugin, a continuación el código:</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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// Si es un single post</span>
	 <span style="color: #000088;">$cat</span> <span style="color: #339933;">=</span> the_category_ID<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// El id de la categoría, el (FALSE) es para que no escriba el número</span>
	 <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// El id del current post</span>
	 <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #666666; font-style: italic;">// La variable</span>
		<span style="color: #0000ff;">'cat'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$cat</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// El id de la categoría que buscamos arriba</span>
		<span style="color: #0000ff;">'showposts'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// El número de posts que se van a listar</span>
		<span style="color: #0000ff;">'post__not_in'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// Llama al id del post actual para que no sea listado</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>Ahora para que se muestren los posts ponemos esto:<br
/> <span
id="more-532"></span></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;">	&lt;h4&gt;Relacionados:&lt;/h4&gt;
	&lt;ul&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$recent</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recent</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$recent</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><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>
        &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/ul&gt;</pre></td></tr></table></div><p>El código completo:</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
</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;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// Si es un single post</span>
	 <span style="color: #000088;">$cat</span> <span style="color: #339933;">=</span> the_category_ID<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// El id de la categoría, el (FALSE) es para que no escriba el número</span>
	 <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> get_the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// El id del current post</span>
	 <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #666666; font-style: italic;">// La variable</span>
		<span style="color: #0000ff;">'cat'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$cat</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// El id de la categoría que buscamos arriba</span>
		<span style="color: #0000ff;">'showposts'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// El número de posts que se van a listar</span>
		<span style="color: #0000ff;">'post__not_in'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// Llama al id del post actual para que no sea listado</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;h4&gt;Relacionados&lt;/h4&gt;
	&lt;ul&gt;
	     <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$recent</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recent</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$recent</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><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>				
             &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
	     <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>Cualquier duda pregunten que vemos si la resolvemos <img
src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/listar-posts-de-la-misma-categoria.php/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Eliminar el menú de las estadísticas de akismet</title><link>http://wordpress-hacks.com/eliminar-el-menu-de-las-estadisticas-de-akismet.php</link> <comments>http://wordpress-hacks.com/eliminar-el-menu-de-las-estadisticas-de-akismet.php#comments</comments> <pubDate>Thu, 18 Feb 2010 11:32:09 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Plugins]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=528</guid> <description><![CDATA[Desde la versión 2.2.1, Akismet integra dentro del menú del &#8220;Dashboard&#8221; una opción para ver las estadísticas de spam capturado, de falsos positivos y un par de cosas más inútiles. Recién me puse a ver para eliminar la opción del menú, ya que no me sirve para nada y no me gusta tener cosas de [...]]]></description> <content:encoded><![CDATA[<p>Desde la versión 2.2.1, <strong>Akismet</strong> integra dentro del menú del &#8220;Dashboard&#8221; una opción para ver las <strong>estadísticas de spam</strong> capturado, de falsos positivos y un par de cosas más inútiles.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/02/akismet-stats.png" alt="" title="akismet stats" width="179" height="109" class="aligncenter size-full wp-image-529" /></div><p>Recién me puse a ver para eliminar la opción del menú, ya que no me sirve para nada y no me gusta tener cosas de más. Para eliminar la solapa de &#8220;Akismet stats&#8221; hay que eliminar la línea 29 del plugin (versión 2.2.7) que dice lo siguiente:</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;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'akismet_stats_page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/eliminar-el-menu-de-las-estadisticas-de-akismet.php/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>W3 Total Cache, un plugin de guerra</title><link>http://wordpress-hacks.com/w3-total-cache.php</link> <comments>http://wordpress-hacks.com/w3-total-cache.php#comments</comments> <pubDate>Fri, 12 Feb 2010 19:34:31 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Plugins]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=524</guid> <description><![CDATA[W3 Total Cache es más que un plugin, lo definiría como la solución definitiva a todos los problemas de caché en blogs de WordPress. W3 Total Cache tiene ventajas que lo hacen único, sumando las infinitas opciones que brinda a la hora de configurarlo hasta el soporte técnico y el continuo desarrollo es el plugin [...]]]></description> <content:encoded><![CDATA[<p><strong>W3 Total Cache</strong> es más que un plugin, lo definiría como la solución definitiva a todos los problemas de caché en blogs de WordPress.</p><p>W3 Total Cache tiene ventajas que lo hacen único, sumando las infinitas opciones que brinda a la hora de configurarlo hasta el soporte técnico y el continuo desarrollo es el plugin definitivo a la hora de cachear wp.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/02/w3-edge.png" alt="" title="w3 edge" width="284" height="103" class="aligncenter size-full wp-image-525" /></div><p>Estoy usando hace unos 3 meses este plugin en la mayoría de mis sitios y solo puedo halagarlo. Este plugin permite cachear todo tipo de archivos como por ejemplo JavaScript, Css, Html, etc.</p><p>La instalación es más que fácil, simplemente hay que <a
href="http://wordpress.org/extend/plugins/w3-total-cache/">bajar la última versión</a>, agregar la siguiente línea en el wp-config:</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: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_CACHE'</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></pre></td></tr></table></div><p>Dar permisos chmod 777 temporalmente a /wp-content<br
/> Instalarlo y configurarlo.</p><p>Por experiencia les recomiendo que dejen todo lo mas por default posible y activen el caché de la base de datos, con eso es suficiente, particularmente en este servidor me bajó de casi 700.000 peticiones por hora a entre 330 y 350.000.</p><p>Sitio Oficial de <a
href="http://www.w3-edge.com/wordpress-plugins/w3-total-cache/">W3 Total Cache</a>.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/w3-total-cache.php/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Instalar múltiples blogs en la misma base de datos</title><link>http://wordpress-hacks.com/instalar-multiples-blogs-en-la-misma-base-de-datos.php</link> <comments>http://wordpress-hacks.com/instalar-multiples-blogs-en-la-misma-base-de-datos.php#comments</comments> <pubDate>Fri, 12 Feb 2010 14:03:42 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[instalar wordpress]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=518</guid> <description><![CDATA[La mayoría de las veces cuando los blogs están dando sus primeros pasos junto a quien lleva las riendas de los mismos están limitados a comprar un hosting barato, ya que al no tener ganancias o tener muy pocas y al no tener mucho tráfico con un hosting simple puede alcanzar y sobrar. Instalar múltiples [...]]]></description> <content:encoded><![CDATA[<p>La mayoría de las veces cuando los blogs están dando sus primeros pasos junto a quien lleva las riendas de los mismos están limitados a comprar un hosting barato, ya que al no tener ganancias o tener muy pocas y al no tener mucho tráfico con un hosting simple puede alcanzar y sobrar.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/02/blog.png" alt="" title="Esta imagen es del blog de Mozilla, me gustó y la robé" width="253" height="210" class="aligncenter size-full wp-image-522" /></div><p>Instalar múltiples blogs en la misma base de datos puede servir cuando se limitan el número de bases de datos que se pueden crear, generalmente son 3 o 5 para los host chicos, es algo que lleva poco tiempo y es fácil de hacer, asi que dejo de rodeos y vamos a instalar wp.</p><p>Por supuesto hay que crear una sola base de datos y un usuario y hay que dejar todos los wp-config.php iguales, lo único que hay que cambiar es la línea que por defecto es:</p><p><strong>$table_prefix  = &#8216;wp_&#8217;;</strong></p><p>Pueden poner cualquier prefijo de bases de datos, puede ser el nombre del sitio o simplemente &#8220;wp1_&#8221;, &#8220;wp2_&#8221;, &#8220;wp3_&#8221;, etc.</p><p>Quedará algo así:</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2010/02/multiples-blogs-misma-db.png" alt="" title="multiples blogs misma db" width="198" height="555" class="aligncenter size-full wp-image-520" /></div> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/instalar-multiples-blogs-en-la-misma-base-de-datos.php/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Metas descripciones en tags y categorías sin plugins</title><link>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php</link> <comments>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php#comments</comments> <pubDate>Mon, 14 Dec 2009 19:15:38 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Hacks]]></category> <category><![CDATA[Meta Tags]]></category> <category><![CDATA[Tags Descriptions]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=513</guid> <description><![CDATA[La meta tag description es una de las más importantes a la hora de hacer seo on page en un sitio, si tenemos categorías y tags que sean relevantes seguro podrán aprovechar este artículo. Desconozco si algún plugin para optimización seo tiene implementado las descripciones en las tags, ya que desde la versión 2.8 de [...]]]></description> <content:encoded><![CDATA[<p>La <a
href="http://www.google.com/support/webmasters/bin/answer.py?hl=es&amp;answer=79812">meta tag description</a> es una de las más importantes a la hora de hacer <a
href="http://blog.ikhuerta.com/bases-del-seo-onpage">seo on page</a> en un sitio, si tenemos categorías y tags que sean relevantes seguro podrán aprovechar este artículo.</p><div
align="center"><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/meta_tags-300x242.jpg" alt="meta tags" title="meta tags" width="300" height="242" class="aligncenter size-medium wp-image-515" /></div><p>Desconozco si algún plugin para optimización seo tiene implementado las descripciones en las tags, ya que desde la <a
href="http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php">versión 2.8 de WordPress</a> se pueden agregar, pero probablemente si.</p><p>Ayer estuve gran parte de la tarde buscando el mejor código para hacer esto y me decidí por el siguiente:</p><p>Para llamar las descripciones en tags:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</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;">if</span> <span style="color: #009900;">&#40;</span> is_tag<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> tag_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>en categorías:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</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;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> category_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>Este código obviamente va en el header antes de /head.</p><p>El problema que tenía era que me quedaban las descripciones con un &lt;p&gt; y &lt;/p&gt; , por ejemplo quedaba:</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: #339933;">&lt;</span>meta name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> content<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;p&gt;descripcion&lt;/p&gt;&quot;</span> <span style="color: #339933;">/&gt;</span></pre></td></tr></table></div><p>Anduve buscando por un rato y encontré algo que realmente desconocía, la <a
href="http://codex.wordpress.org/Function_Reference/wpautop">función wpautop</a>, fuí al <a
href="http://ma.tt/scripts/autop/">blog de Matt</a> y entendí un poco más.</p><p>Al rato encontré en el foro de Wp <a
href="http://wordpress.org/support/topic/137008#post-625941">la solución</a> a mi problema.</p><p>Hay que agregar la siguiente línea en el <strong>functions.php</strong> del theme en uso:</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;">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'term_description'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'wpautop'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Para los desprevenidos que se pregunten donde agregar las descripciones a los tags y las categorías les respondo que se hacen entrando a la lista de tags o categorías y dándo clic en editar -no en edición rápida- y agregando en el campo descripción lo que queramos mostrar.</p><p><em>Nota:</em> si usan algún &#8220;plugin seo&#8221; chequeen que no les quede duplicada la descripción, la mayoría de los plugins seo que conozco solo agregan la meta tag description a las categorías y no a los tags, si es su caso pueden agregar solo el código para las descripciones de los tags.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/metas-descriptions-en-tags-y-categorias.php/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Checklist para luego de instalar WordPress</title><link>http://wordpress-hacks.com/checklist-luego-de-instalar-wordpress.php</link> <comments>http://wordpress-hacks.com/checklist-luego-de-instalar-wordpress.php#comments</comments> <pubDate>Mon, 07 Dec 2009 23:54:59 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[configurar wordpress]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=480</guid> <description><![CDATA[El otro día comenté en Twitter la idea de hacer una checklist para después de instalar WordPress y varios dijeron que era buena idea, asi que acá vamos. Luego de instalar WordPress (de ahora en más Wp) y haber eliminado el install.php, modificando varias cosas que son sencillas podemos aprovechar varias de las ventajas de [...]]]></description> <content:encoded><![CDATA[<p>El otro día comenté en Twitter la idea de hacer una checklist para después de instalar WordPress y varios dijeron que era buena idea, asi que acá vamos.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/checklist.jpg" alt="checklist" title="checklist" width="250" height="165" class="aligncenter size-full wp-image-509" /></p><p>Luego de instalar WordPress (de ahora en más Wp) y haber eliminado el install.php, modificando varias cosas que son sencillas podemos aprovechar varias de las ventajas de este cms, a continuación una lista de acciones que realizo en general luego de instalar Wp, por lo que pueden estar o no de acuerdo con esto.</p><p>Nota: Las secciones que salteo son las que no modifico en primer momento.</p><p>Lo primero que hago es crear un nuevo usuario con permisos de administrador (/wp-admin/user-new.php), dejo de usar el usuario Admin y me logueo con el usuario que cree anteriormente, ahí comienzo los cambios, en primer lugar limpiar el panel de administración (Dashboard).</p><p>Haciendo clic en &#8220;Screen Options&#8221; (/wp-admin/index.php#screen-options) sale una lista de opciones desplegables, yo siempre dejo tildadas las primeras 3.<br
/> <span
id="more-480"></span><br
/> <img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/02-Dashboard.png" alt="02 Dashboard" title="02 Dashboard" width="389" height="80" class="aligncenter size-full wp-image-483" /></p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/03-Screen-Options.png" alt="03 Screen Options" title="03 Screen Options" width="427" height="154" class="aligncenter size-full wp-image-484" /></p><p>Es la Hora de los Posts (/wp-admin/edit.php), borro el Hello World!.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/05-Post-Edit.png" alt="05 Post Edit" title="05 Post Edit" width="347" height="153" class="aligncenter size-full wp-image-486" /></p><p>Ahora cambio el nombre y el permalink de la categoría default. (/wp-admin/categories.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/06-Post-Categories.png" alt="06 Post Categories" title="06 Post Categories" width="180" height="154" class="aligncenter size-full wp-image-487" /></p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/07-Categories.png" alt="07 Categories" title="07 Categories" width="187" height="152" class="aligncenter size-full wp-image-488" /></p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/08-Categories-Edit.png" alt="08 Categories Edit" title="08 Categories Edit" width="227" height="217" class="aligncenter size-full wp-image-489" /></p><p>Hora de los links. (/wp-admin/link-manager.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/09-Links-Edit.png" alt="09 Links Edit" title="09 Links Edit" width="179" height="131" class="aligncenter size-full wp-image-490" /></p><p>Borro todos los que Wp trae.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/10-Delete-links.png" alt="10 Delete links" title="10 Delete links" width="223" height="450" class="aligncenter size-full wp-image-491" /></p><p>Páginas. (/wp-admin/edit-pages.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/11-Pages-edit.png" alt="11 Pages edit" title="11 Pages edit" width="179" height="109" class="aligncenter size-full wp-image-492" /></p><p>Borro la default que es &#8220;About&#8221;.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/12-Page-edit-delete.png" alt="12 Page edit delete" title="12 Page edit delete" width="255" height="116" class="aligncenter size-full wp-image-493" /></p><p>Settings. (/wp-admin/options-general.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/13-Settings-General.png" alt="13 Settings General" title="13 Settings General" width="179" height="241" class="aligncenter size-full wp-image-494" /></p><p>En Settings -> General hay varias cosas para tocar.</p><p>Configurar el Tagline (Descripción).<br
/> Cambiar la zona horaria.<br
/> Cambiar el <a
href="http://wordpress-hacks.com/personalizar-la-hora-en-wordpress.php">formato de la fecha</a>.</p><p>Settings -> Writing. (/wp-admin/options-writing.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/14-Settings-Writing.png" alt="14 Settings Writing" title="14 Settings Writing" width="178" height="241" class="aligncenter size-full wp-image-495" /></p><p>En esta sección lo único que modifico es la lista de sitios para hacer ping (<a
href="http://wordpress-hacks.com/wp-content/uploads/2009/12/lista-sitios.ping_.txt">Ejemplo</a>).</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/15-Settings-Updates-services.png" alt="15 Settings Updates services" title="15 Settings Updates services" width="295" height="194" class="aligncenter size-full wp-image-496" /></p><p>Settings -> Reading. (/wp-admin/options-reading.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/16-Settings-Reading.png" alt="16 Settings Reading" title="16 Settings Reading" width="179" height="241" class="aligncenter size-full wp-image-497" /></p><p>Lo único que cambio en esta sección son el número de posts a mostrar en una página, generalmente pongo 5. A veces cambio el número de posts que se ven al suscribirse al feed, eso según el sitio y el número que se me cruce <img
src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/17-Settings-reading-post.png" alt="17 Settings reading post" title="17 Settings reading post" width="361" height="236" class="aligncenter size-full wp-image-498" /></p><p>Settings -> Discussion. (/wp-admin/options-discussion.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/18-Settings-Discussion.png" alt="18 Settings Discussion" title="18 Settings Discussion" width="179" height="240" class="aligncenter size-full wp-image-499" /></p><p>Acá están las opciones de los comentarios, a simple vista lo único que hago es des-tildar la casilla de paginar los comentarios (&#8220;Break comments into pages with 50 comments per page and the last page displayed by default&#8221;).</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/18-2-Settings-Discussion.png" alt="18- 2 Settings Discussion" title="18- 2 Settings Discussion" width="288" height="50" class="aligncenter size-full wp-image-505" /></p><p>Settings -> Permalinks. (/wp-admin/options-permalink.php)</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/19-Settings-Permalinks.png" alt="19 Settings Permalinks" title="19 Settings Permalinks" width="179" height="241" class="aligncenter size-full wp-image-500" /></p><p>Ya se ha dicho mucho de <a
href="http://ayudawordpress.com/estructura-permalinks/">permalinks en Wp</a>, yo simplemente los dejo como /%postname%.php, y, según en que sitio modifico los permalinks de las /tag/ y /category/, por ejemplo en este sitio las categorías son /cat/ y las tags las dejé como /tag/, pero siempre pueden elegir las <a
href="http://codex.wordpress.org/Using_Permalinks">opciones que más les gusten</a>.</p><p><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/12/20-Settings-Permalinks-Custom.png" alt="20 Settings Permalinks Custom" title="20 Settings Permalinks Custom" width="409" height="69" class="aligncenter size-full wp-image-501" /></p><p>Después de terminar estas configuraciones básicas, tengo una carpeta siempre a mano de plugins actualizados que uso y los subo, luego el theme, contenido, <a
href="http://www.chicaseo.com/seo-bsico-de-neri-aispuro/">SEO básico</a> y listo para navegar entre los turbios bytes de la www.</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/checklist-luego-de-instalar-wordpress.php/feed</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 5/10 queries in 0.022 seconds using disk

Served from: wordpress-hacks.com @ 2010-07-31 22:45:30 -->