• Hola a todos:
    Les comento que me he bajado el tema «Reco», que es bastante sencillo y hasta el momento no tuve grandes inconveninentes… hasta ahora.
    El tema me permite agregar una barra de post Destacados en la parte inferior del sitio. El problema es que en los ajustes me permite elegir de qué categoría serán los post a mostrar. Mi problema es que quiero que se vean los destacados de TODAS LAS CATEGORÍAS.
    Por suerte no me costó encontrar el código, pero no me queda claro dónde tocar.
    Muchas gracias!

    <?php
    
    		$cat1 = get_option(SHORT_NAME . 'category_1');
    
    		$args = array(	'cat' => $cat1,
    						'showposts' => 4);
    
    		if ($duplicate != true) {
    			$args = array(	'cat' => $cat1,
    							'showposts' => 4,
    							'post__not_in' => $do_not_duplicate);
    		}
    
    		$recent = new WP_Query($args);
    		if ($recent->have_posts() && (! ($cat1 < 0))) {
    			while ($recent->have_posts()) : $recent->the_post();
    				$do_not_duplicate[] = $post->ID;
    				$image = get_post_meta($post->ID, "Image", $single = true); ?>
    							    <div class="portfolio-contenthm">
    									<?php if ($image !== '') { ?>
    								<a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/phpThumb/phpThumb.php?src=<?php echo $image; ?>&h=95&w=226&zc=1&q=100" alt="<?php the_title(); ?>" style="border:none;" /></a>
    							<?php }
    							else {
    								echo '';
    							} ?>
    
    							<div class="m-blog-title2s"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
    								 <div class="pdiinf"><?php the_time('F jS, Y') ?></div>
    								</div>
    
    							 <?php endwhile;
    		}
    		else {
    			print_emp_cat('1', $cat1);
    		}
    		?>

  • El debate ‘Quiero mostrar todas las categorías en Destacados’ está cerrado a nuevas respuestas.