<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Foro WordPress &#187; Hilo: Queries, variables y códigos útiles para WordPress</title>
<link>http://ayudawordpress.com/foro/</link>
<description>Ayuda entre usuarios</description>
<language>es-ES</language>
<pubDate>Sun, 12 Feb 2012 14:17:26 +0000</pubDate>
<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Buscar]]></title>
			<description><![CDATA[Buscar en todos los hilos de estos foros.]]></description>
			<name>q</name>
			<link>http://ayudawordpress.com/foro/search.php</link>
		</textInput>
		<atom:link href="http://ayudawordpress.com/foro/rss/topic/queries-variables-y-codigos-utiles-para-wordpress" rel="self" type="application/rss+xml" />

<item>
<title>jeanbelmont en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-37003</link>
<pubDate>Mie, 13 Abr 2011 11:32:58 +0000</pubDate>
<dc:creator>jeanbelmont</dc:creator>
<guid isPermaLink="false">37003@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;&#60;blockquote&#62;Gracias LGrusin&#60;/blockquote&#62;&#60;br /&#62;
pues mira aquí con la noticia de que ya lo resolví, siguiendo los consejos aquí citados aunque de una manera un tanto mas sofisticada, sin embargo a mi parecer también mas fácil o mejor dicho flexible, pues al separar los códigos, pude tocarlos sin des componerlo todo el conjunto explico:&#60;/p&#62;
&#60;p&#62;hice 2 archivos el primero se llama noticias.php y es muy sencillo como un index primero llama a la cabecera luego llama al loop y finalmente sidebar y footer&#60;br /&#62;
quedo asi:&#60;/p&#62;
&#60;p&#62;&#60;div class=&#34;syntax_hilite&#34;&#62;&#60;div id=&#34;php-1&#34;&#62;
&#60;div class=&#34;php&#34;&#62;&#60; ?php&#60;br /&#62;
&#60;span style=&#34;color:#008000;&#34;&#62;/*&#60;br /&#62;
Template Name: noticias&#60;br /&#62;
*/&#60;/span&#62;&#60;br /&#62;
? &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php&#60;br /&#62;
&#60;br /&#62;
get_header&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;container&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;content&#34;&#60;/span&#62; role=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;main&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60;span style=&#34;color:#008000;&#34;&#62;/* Run the loop to output the page.&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; * If you want to overload this in a child theme then include a file&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; * called loop-page.php and that will be used instead.&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; */&#60;/span&#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; get_template_part&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'loop'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'noticias'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#content -- &#62;&#60;/span&#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#container -- &#62;&#60;/span&#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php get_sidebar&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60; ?php get_footer&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;/div&#62;
&#60;/div&#62;&#60;/div&#62;&#60;br /&#62;&#60;/p&#62;
&#60;p&#62;el segundo se llamo loop-noticias.php y es mas complejo pues quise insertar los plugins y todo eso que ya aparecia en la pagina de inicio, por lo cual me base en el loop-atachment.php y le hice solo 2 modificaciones, quedo asi:&#60;/p&#62;
&#60;p&#62;&#60;div class=&#34;syntax_hilite&#34;&#62;&#60;div id=&#34;php-2&#34;&#62;
&#60;div class=&#34;php&#34;&#62;&#60; ?php query_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;'category_noticias'&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; ? &#62;&#60;br /&#62;
&#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;if&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#616100;&#34;&#62;while&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; : the_post&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;if&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; ! &#60;a href=&#34;http://www.php.net/empty&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;empty&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#0000FF;&#34;&#62;$post&#60;/span&#62;- &#62;post_parent &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; : ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; p &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;page-title&#34;&#60;/span&#62; &#62;&#38;lt;a&#38;gt;post_parent &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; title=&#34;&#60;/span&#62;&#60; ?php esc_attr&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;a href=&#34;http://www.php.net/printf&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;printf&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; __&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'Return to %s'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'twentyten'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;, get_the_title&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#0000FF;&#34;&#62;$post&#60;/span&#62;- &#62;post_parent &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; rel=&#34;&#60;/span&#62;gallery&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; /* translators: %s - title of parent post */&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; printf( __( '&#60; span class=&#34;&#60;/span&#62;meta-nav&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#38;amp;larr;&#60; /span &#62; %s', 'twentyten' ), get_the_title( $post- &#62;post_parent ) );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#38;lt;/a&#38;gt;&#60; /p &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php endif; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#34;&#60;/span&#62;post-&#60; ?php the_ID&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#60; ?php post_class(); ? &#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; h2 class=&#34;&#60;/span&#62;entry-title&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60; ?php the_title(); ? &#62;&#60; /h2 &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div class=&#34;&#60;/span&#62;entry-meta&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; printf( __( '&#60; span class=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;1&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;By&#60; /span &#62; %2$s', 'twentyten' ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; 'meta-prep meta-prep-author',&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; sprintf( '&#60; span class=&#34;&#60;/span&#62;author vcard&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#38;lt;a href=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;1&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; title=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;2&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;&#38;gt;%3$s&#38;lt;/a&#38;gt;&#60; /span &#62;',&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; get_author_posts_url( get_the_author_meta( 'ID' ) ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; get_the_author()&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; )&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; span class=&#34;&#60;/span&#62;meta-sep&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#124;&#60; /span &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; printf( __( '&#60; span class=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;1&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;Published&#60; /span &#62; %2$s', 'twentyten' ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; 'meta-prep meta-prep-entry-date',&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; sprintf( '&#60; span class=&#34;&#60;/span&#62;entry-&#60;a href=&#34;http://www.php.net/date&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;date&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60; abbr class=&#34;&#60;/span&#62;published&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; title=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;1&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;%2$s&#60; /abbr &#62;&#60; /span &#62;',&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; esc_attr( get_the_time() ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; get_the_date()&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; )&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; if ( wp_attachment_is_image() ) {&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; echo ' &#60; span class=&#34;&#60;/span&#62;meta-sep&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#124;&#60; /span &#62; ';&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $metadata = wp_get_attachment_metadata();&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; printf( __( 'Full size is %s pixels', 'twentyten' ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; sprintf( '&#38;lt;a href=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;1&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; title=&#34;&#60;/span&#62;%&#60;span style=&#34;color:#CC66CC;&#34;&#62;2&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$s&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;&#38;gt;%3$s &#38;amp;times; %4$s&#38;lt;/a&#38;gt;',&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; wp_get_attachment_url(),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; esc_attr( __( 'Link to full-size image', 'twentyten' ) ),&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $metadata['width'],&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $metadata['height']&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; )&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; }&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php edit_post_link( __( 'Edit', 'twentyten' ), '&#60; span class=&#34;&#60;/span&#62;meta-sep&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#124;&#60; /span &#62; &#60; span class=&#34;&#60;/span&#62;edit-&#60;a href=&#34;http://www.php.net/link&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;link&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;', '&#60; /span &#62;' ); ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- .entry-meta -- &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div class=&#34;&#60;/span&#62;entry-content&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div class=&#34;&#60;/span&#62;entry-attachment&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60;br /&#62;
&#60; ?php if ( wp_attachment_is_image() ) :&#60;br /&#62;
&#38;nbsp; &#38;nbsp; $attachments = array_values( get_children( array( 'post_parent' = &#62; $post- &#62;post_parent, 'post_status' = &#62; 'inherit', 'post_type' = &#62; 'attachment', 'post_mime_type' = &#62; 'image', 'order' = &#62; 'ASC', 'orderby' = &#62; 'menu_order ID' ) ) );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; foreach ( $attachments as $k = &#62; $attachment ) {&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; if ( $attachment- &#62;ID == $post- &#62;ID )&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; break;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; }&#60;br /&#62;
&#38;nbsp; &#38;nbsp; $k++;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; // If there is more than 1 image attachment in a gallery&#60;br /&#62;
&#38;nbsp; &#38;nbsp; if ( count( $attachments )  &#62; 1 ) {&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; if ( isset( $attachments[ $k ] ) )&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; // get the URL of the next image attachment&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $next_attachment_url = get_attachment_link( $attachments[ $k ]- &#62;ID );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; else&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; // or get the URL of the first image attachment&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $next_attachment_url = get_attachment_link( $attachments[ 0 ]- &#62;ID );&#60;br /&#62;
&#38;nbsp; &#38;nbsp; } else {&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; // or, if there's only 1 image attachment, get the URL of the image&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; $next_attachment_url = wp_get_attachment_url();&#60;br /&#62;
&#38;nbsp; &#38;nbsp; }&#60;br /&#62;
? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; p class=&#34;&#60;/span&#62;attachment&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#38;lt;a&#38;gt;&#34;&#60;/span&#62; title=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;&#60; ?php echo esc_attr( get_the_title() ); ? &#62;&#34;&#60;/span&#62; rel=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;attachment&#34;&#60;/span&#62; &#62;&#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60;span style=&#34;color:#0000FF;&#34;&#62;$attachment_width&#60;/span&#62;&#38;nbsp; = apply_filters&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'twentyten_attachment_size'&#60;/span&#62;, &#60;span style=&#34;color:#CC66CC;&#34;&#62;900&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60;span style=&#34;color:#0000FF;&#34;&#62;$attachment_height&#60;/span&#62; = apply_filters&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'twentyten_attachment_height'&#60;/span&#62;, &#60;span style=&#34;color:#CC66CC;&#34;&#62;900&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60;a href=&#34;http://www.php.net/echo&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;echo&#60;/span&#62;&#60;/a&#62; wp_get_attachment_image&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#0000FF;&#34;&#62;$post&#60;/span&#62;- &#62;ID, &#60;a href=&#34;http://www.php.net/array&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;array&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#0000FF;&#34;&#62;$attachment_width&#60;/span&#62;, &#60;span style=&#34;color:#0000FF;&#34;&#62;$attachment_height&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; &#60;span style=&#34;color:#FF9933; font-style:italic;&#34;&#62;// filterable image width with, essentially, no limit for image height.&#60;/span&#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#38;lt;/a&#38;gt;&#60; /p &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;nav-below&#34;&#60;/span&#62; &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;navigation&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;nav-previous&#34;&#60;/span&#62; &#62;&#60; ?php previous_image_link&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;false&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60; /div &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;nav-next&#34;&#60;/span&#62; &#62;&#60; ?php next_image_link&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;false&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60; /div &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#nav-below -- &#62;&#60;/span&#62;&#60;br /&#62;
&#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;else&#60;/span&#62; : ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;lt;a&#38;gt;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; title=&#34;&#60;/span&#62;&#60; ?php &#60;a href=&#34;http://www.php.net/echo&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;echo&#60;/span&#62;&#60;/a&#62; esc_attr&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; get_the_title&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; rel=&#34;&#60;/span&#62;attachment&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60; ?php echo basename( get_permalink() ); ? &#62;&#38;lt;/a&#38;gt;&#60;br /&#62;
&#60; ?php endif; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- .entry-attachment -- &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div class=&#34;&#60;/span&#62;entry-caption&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60; ?php if ( !empty( $post- &#62;post_excerpt ) ) the_excerpt(); ? &#62;&#60; /div &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php the_content( __( 'Continue reading &#60; span class=&#34;&#60;/span&#62;meta-nav&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#38;amp;rarr;&#60; /span &#62;', 'twentyten' ) ); ? &#62;&#60;br /&#62;
&#60; ?php wp_link_pages( array( 'before' = &#62; '&#60; div class=&#34;&#60;/span&#62;page-&#60;a href=&#34;http://www.php.net/link&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;link&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;' . __( 'Pages:', 'twentyten' ), 'after' = &#62; '&#60; /div &#62;' ) ); ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- .entry-content -- &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div class=&#34;&#60;/span&#62;entry-utility&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php twentyten_posted_in(); ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php edit_post_link( __( 'Edit', 'twentyten' ), ' &#60; span class=&#34;&#60;/span&#62;edit-&#60;a href=&#34;http://www.php.net/link&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;link&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34; &#62;', '&#60; /span &#62;' ); ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- .entry-utility -- &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- #post-## -- &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php comments_template(); ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php endwhile; // end of the loop. ? &#62; &#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;/div&#62;&#60;br /&#62;&#60;/p&#62;
&#60;p&#62;ya por ultimo solo me gustaría quitar la entrada fija de bienvenida, para lo cual habría que mover (según yo) la parte de get_permalink, si me pudieran ayudar con ese ultimo detalle seria fantástico, desde ya muchas gracias por ayudar tanto a la comunidad sigan así &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://blog.jeanbelmont.com&#34;&#62;blog.jeanbelmont.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>LGrusin en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-37000</link>
<pubDate>Mie, 13 Abr 2011 10:40:06 +0000</pubDate>
<dc:creator>LGrusin</dc:creator>
<guid isPermaLink="false">37000@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;El código no se muestra correctamente con lo que no puedo saber si has hecho algo mal o es al ponerlo en el Foro. &#60;/p&#62;
&#60;p&#62;Por de pronto te puedo decir que no le pasas bien la categoría que quieres mostrar en el query.&#60;/p&#62;
&#60;p&#62;Crea un Hilo nuevo para esto y te seguimos allí.&#60;/p&#62;
&#60;p&#62;Un saludo
&#60;/p&#62;</description>
</item>
<item>
<title>jeanbelmont en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-36995</link>
<pubDate>Mie, 13 Abr 2011 10:11:15 +0000</pubDate>
<dc:creator>jeanbelmont</dc:creator>
<guid isPermaLink="false">36995@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Hola primero deseo agradecer por  el tuto que es muy completo, y segundamente deseo solicitar un poco de ayuda, apenas comienzo con esto de wordpress y php seguí todos los pasos para mostrar solo ciertas categorías en mis paginas con eso de la query, pero algo hice mal y no se que fue, la situación es que mi pagina se muestra con errores, todo el contenido lo muestra fuera del template aquí dejo 2 ejemplos primero el de mi código y luego de como se muestra en la pagina&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;https://picasaweb.google.com/106700634252281878045/PhpCode#5594990016961642626&#34;&#62;&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;https://picasaweb.google.com/106700634252281878045/Apr132011#5594990247281207890&#34;&#62;&#60;/p&#62;
&#60;p&#62;Edited:&#60;br /&#62;
creo que por alguna razón no se muestran las imágenes que puse &#60;img src=&#34;http://ayudawordpress.com/foro/my-plugins/bb-smilies/default/icon_sad.gif&#34; title=&#34;:(&#34; class=&#34;bb_smilies&#34; /&#62; &#60;br /&#62;
bueno aquí pondré el código como lo tengo a ver si alguien me puede decir que he echo mal&#60;/p&#62;
&#60;p&#62;&#60;div class=&#34;syntax_hilite&#34;&#62;&#60;div id=&#34;php-3&#34;&#62;
&#60;div class=&#34;php&#34;&#62;&#60; ?php&#60;br /&#62;
&#60;span style=&#34;color:#008000;&#34;&#62;/*&#60;br /&#62;
Template Name: noticias&#60;br /&#62;
*/&#60;/span&#62;&#60;br /&#62;
? &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php&#60;br /&#62;
&#60;span style=&#34;color:#008000;&#34;&#62;/**&#60;br /&#62;
&#38;nbsp;* The main template file.&#60;br /&#62;
&#38;nbsp;*&#60;br /&#62;
&#38;nbsp;* This is the most generic template file in a WordPress theme&#60;br /&#62;
&#38;nbsp;* and one of the two required files for a theme (the other being style.css).&#60;br /&#62;
&#38;nbsp;* It is used to display a page when nothing more specific matches a query.&#60;br /&#62;
&#38;nbsp;* E.g., it puts together the home page when no home.php file exists.&#60;br /&#62;
&#38;nbsp;* Learn more: &#38;lt;a href=&#38;quot;http://codex.wordpress.org/Template_Hierarchy&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;http://codex.wordpress.org/Template_Hierarchy&#38;lt;/a&#38;gt;&#60;br /&#62;
&#38;nbsp;*&#60;br /&#62;
&#38;nbsp;* @package WordPress&#60;br /&#62;
&#38;nbsp;* @subpackage Twenty_Ten&#60;br /&#62;
&#38;nbsp;* @since Twenty Ten 1.0&#60;br /&#62;
&#38;nbsp;*/&#60;/span&#62;&#60;br /&#62;
&#60;br /&#62;
get_header&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;container&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;content&#34;&#60;/span&#62; role=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;main&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60;span style=&#34;color:#008000;&#34;&#62;/* Run the loop to output the posts.&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; * If you want to overload this in a child theme then include a file&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; * called loop-index.php and that will be used instead.&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; */&#60;/span&#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp;&#38;nbsp; get_template_part&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'loop'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'index'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#content -- &#62;&#60;/span&#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#container -- &#62;&#60;/span&#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php get_sidebar&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60; ?php get_footer&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php query_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#FF0000;&#34;&#62;'category_name=noticias'&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; ? &#62;&#60;br /&#62;
&#38;nbsp;&#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;if&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#616100;&#34;&#62;while&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; : the_post&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div id=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;post-&#60; ?php the_ID(); ? &#62;&#34;&#60;/span&#62; &#60; ?php post_class&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;if&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; is_front_page&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#123;&#60;/span&#62; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; h2 &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;entry-title&#34;&#60;/span&#62; &#62;&#60; ?php the_title&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60; /h2 &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#125;&#60;/span&#62; &#60;span style=&#34;color:#616100;&#34;&#62;else&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#123;&#60;/span&#62; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; h1 &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;entry-title&#34;&#60;/span&#62; &#62;&#60; ?php the_title&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60; /h1 &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#125;&#60;/span&#62; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; div &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;class&#60;/span&#62;=&#60;span style=&#34;color:#FF0000;&#34;&#62;&#34;entry-content&#34;&#60;/span&#62; &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php the_content&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php wp_link_pages&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;a href=&#34;http://www.php.net/array&#34;&#62;&#60;span style=&#34;color:#000066;&#34;&#62;array&#60;/span&#62;&#60;/a&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'before'&#60;/span&#62; = &#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'&#60; div class=&#38;quot;page-link&#38;quot; &#62;'&#60;/span&#62; . __&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'Pages:'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'twentyten'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'after'&#60;/span&#62; = &#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'&#60; /div &#62;'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php edit_post_link&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; __&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;'Edit'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'twentyten'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'&#60; span class=&#38;quot;edit-link&#38;quot; &#62;'&#60;/span&#62;, &#60;span style=&#34;color:#FF0000;&#34;&#62;'&#60; /span &#62;'&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- .entry-content -- &#62;&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; /div &#62;&#60; !-- &#60;span style=&#34;color:#008000; font-style:italic;&#34;&#62;#post-## -- &#62;&#60;/span&#62;&#60;br /&#62;
&#60;br /&#62;
&#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#38;nbsp; &#60; ?php comments_template&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62; &#60;span style=&#34;color:#FF0000;&#34;&#62;''&#60;/span&#62;, &#60;span style=&#34;color:#000000; font-weight:bold;&#34;&#62;true&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;br /&#62;
&#60;br /&#62;
&#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;endwhile&#60;/span&#62;; &#60;span style=&#34;color:#FF9933; font-style:italic;&#34;&#62;// end of the loop. ? &#62; &#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;/div&#62;&#60;br /&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>fliberty en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-33927</link>
<pubDate>Dom, 23 Ene 2011 18:14:41 +0000</pubDate>
<dc:creator>fliberty</dc:creator>
<guid isPermaLink="false">33927@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Sabogal, Modificado un poco el orderby puedes ordenar los post por fecha, alfabéticamente, etc...&#60;/p&#62;
&#60;p&#62;En la web santuariochaman.com los ordeno de manera alfabética, pero para que funcione la paginación tendrás que colocarle &#38;amp;paged=$paged al final y mostrar post de categorías específicas si lo deseas.
&#60;/p&#62;</description>
</item>
<item>
<title>Sabogal en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-33925</link>
<pubDate>Dom, 23 Ene 2011 16:00:02 +0000</pubDate>
<dc:creator>Sabogal</dc:creator>
<guid isPermaLink="false">33925@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Hace algún tiempo necesité que en las categorías nos e cargaran los último post sino que se cargaran aleatoriamente. Hoy cuando buscaba otra cosa, encontré la solución.&#60;/p&#62;
&#60;p&#62;Hay que agregar el siguiente código &#60;div class=&#34;syntax_hilite&#34;&#62;&#60;div id=&#34;php-4&#34;&#62;
&#60;div class=&#34;php&#34;&#62;&#60; ?php query_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#0000FF;&#34;&#62;$query_string&#60;/span&#62; . &#60;span style=&#34;color:#FF0000;&#34;&#62;'&#38;amp;amp;orderby=rand'&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;/div&#62;
&#60;/div&#62;&#60;/div&#62;&#60;br /&#62;&#60;/p&#62;
&#60;p&#62;Se agrega antes de &#60;div class=&#34;syntax_hilite&#34;&#62;&#60;div id=&#34;php-5&#34;&#62;
&#60;div class=&#34;php&#34;&#62;&#60; ?php &#60;span style=&#34;color:#616100;&#34;&#62;if&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; : &#60;span style=&#34;color:#616100;&#34;&#62;while&#60;/span&#62; &#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;have_posts&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62; : the_post&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#40;&#60;/span&#62;&#60;span style=&#34;color:#006600; font-weight:bold;&#34;&#62;&#38;#41;&#60;/span&#62;; ? &#62;&#60;/div&#62;
&#60;/div&#62;&#60;/div&#62;&#60;br /&#62;&#60;/p&#62;
&#60;p&#62;Saludos!
&#60;/p&#62;</description>
</item>
<item>
<title>Joel LM en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-31085</link>
<pubDate>Mar, 09 Nov 2010 00:31:28 +0000</pubDate>
<dc:creator>Joel LM</dc:creator>
<guid isPermaLink="false">31085@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Me ahorraste mucho tiempo. &#60;img src=&#34;http://ayudawordpress.com/foro/my-plugins/bb-smilies/default/icon_razz.gif&#34; title=&#34;:P&#34; class=&#34;bb_smilies&#34; /&#62; &#60;/p&#62;
&#60;p&#62;Gracias!
&#60;/p&#62;</description>
</item>
<item>
<title>escael en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-19782</link>
<pubDate>Mie, 10 Mar 2010 07:51:05 +0000</pubDate>
<dc:creator>escael</dc:creator>
<guid isPermaLink="false">19782@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;que condicional debo usar para saber si un usuario esta logueado en mi sitio, esto es para mostrar u ocultar un formulario de logueo&#60;/p&#62;
&#60;p&#62;gracias de antemano
&#60;/p&#62;</description>
</item>
<item>
<title>GeoCON en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-17107</link>
<pubDate>Mie, 20 Ene 2010 18:06:16 +0000</pubDate>
<dc:creator>GeoCON</dc:creator>
<guid isPermaLink="false">17107@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;&#60;blockquote&#62;Me párese excelente tu ayuda, solo que necesito un empujosito con este asunto. Yo estoy usando otro tema y creo que estos cambio los estas haciendo para el tema default, que viene con el WP pre-instalado.&#60;br /&#62;
Yo estoy usando otro temita es el Station 1.2.0 por PageLines. Me podrían ayudar en este caso ya que no pude encontrar el código exacto del index donde copiar el query_post.&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;Ya resolví el problemita. Para este tema de PageLines. Lo que se debe hacer es hacer simplemente un solo archivo de page.php y _pagecontent.php ya que el primero llama al segundo y también con el fin de no tener que hacer un archivo _pagecontent para cada pagina con categoría. Lo demás es igual.
&#60;/p&#62;</description>
</item>
<item>
<title>GeoCON en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-16966</link>
<pubDate>Dom, 17 Ene 2010 20:52:44 +0000</pubDate>
<dc:creator>GeoCON</dc:creator>
<guid isPermaLink="false">16966@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Me párese excelente tu ayuda, solo que necesito un empujosito con este asunto. Yo estoy usando otro tema y creo que estos cambio los estas haciendo para el tema default, que viene con el WP pre-instalado.&#60;br /&#62;
Yo estoy usando otro temita es el Station 1.2.0 por &#60;a href=&#34;http://www.pagelines.com/&#34;&#62;PageLines&#60;/a&#62;. Me podrían ayudar en este caso ya que no pude encontrar el código exacto del index donde copiar el query_post.
&#60;/p&#62;</description>
</item>
<item>
<title>analiavx en "Queries, variables y códigos útiles para WordPress"</title>
<link>http://ayudawordpress.com/foro/topic/queries-variables-y-codigos-utiles-para-wordpress/page/2#post-11092</link>
<pubDate>Mie, 16 Sep 2009 15:27:22 +0000</pubDate>
<dc:creator>analiavx</dc:creator>
<guid isPermaLink="false">11092@http://ayudawordpress.com/foro/</guid>
<description>&#60;p&#62;Realmente soy muy bruta, necesito que me lo expliquen más para principiantes, sólo quiero que aparezcan los post en la categoría y la página que corresponden, porque todos me aparecen en la página principal.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

