Cómo mostrar últimas noticias de una categoría en featured y últimas noticias

  • Autor Autor israelyance
  • Fecha de inicio Fecha de inicio
I

israelyance

Delta
Verificado por Whatsapp
Betas, quiero modificar mi theme, tengo un featured y latest últimas noticias que según ese diseño quisiera modificar para que ambas muestren las últimas noticias de una determinada categoría (Portada).

En el código el featured esta para configurar con un tag pero en el options del theme ponía y no me salia nada, igual no quiero que sea por tag sino una categoría.

Estos son los códigos:

Featured:
Insertar CODE, HTML o PHP:
<div id="featured">

	<div class="slideshow">
		
		<div class="slides" id="main-photo-slider">
			
			<?php 
				query_posts( array(
					'showposts' => get_option('forester_featured_post_num'),
					'tag' => get_option('forester_featured_post_tags')
				) );
				if( have_posts() ) : while( have_posts() ) : the_post();
			?>	
			
				<div class="panel" title="post-<?php the_ID(); ?>">
				
					<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'woothemes' ), get_the_title() ); ?>" class="panel-preview">
						<?php the_post_thumbnail('featured-thumb'); ?>
							
						<div class="arrow"></div>
					</a>
					
					<h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'woothemes' ), get_the_title() ); ?>"><?php the_title(); ?></a></h2>
						
					<p class="entry-meta">				
						<span class="meta-date"><?php the_time('m.d.Y'); ?> <?php the_time('g:i a'); ?></span>
						<span class="meta-sep">|</span>
						<span class="meta-comments"><?php comments_popup_link( __( '0 comentarios', 'themejunkie' ), __( '1 comentario', 'themejunkie' ), __( '% comentarios', 'themejunkie' ) ); ?></span>
					</p>
		
						<?php tj_content_limit('110'); ?>
														
				</div><!--end .panel-->
			
			<?php endwhile; endif; wp_reset_query(); ?>							
			
		</div><!--end .slides-->
	
		<div class="slider-tabs">
			<?php for( $i = 0; $i < get_option('forester_featured_post_num'); $i++ ) { ?>
				<a href="#" class="slider-tab-<?php echo $i; ?>"><?php echo $i; ?></a>
			<?php } ?>
		</div>					
	
	</div><!--end .slideshow -->
	
	<div class="clear"></div>

</div><!--end #featured-->

Latest (Últimas noticias):
Insertar CODE, HTML o PHP:
<div id="latest">
<h3 class="catbox-title"><a rel="latest"><?php _e('Últimas Noticias', 'themejunkie'); ?></a></h3>
	<ul>
		<?php 
			query_posts('showposts='.get_option('forester_latest_post_num'));
			while(have_posts()) : the_post();
		?>
		<li class="clear">
			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themejunkie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
			<p class="entry-meta">				
				<span class="meta-date"><?php the_time('m.d.Y'); ?> <?php the_time('g:i a'); ?></span>
				<span class="meta-sep">|</span>
				<span class="meta-comments"><?php comments_popup_link( __( '0 comentarios', 'themejunkie' ), __( '1 comentario', 'themejunkie' ), __( '% comentarios', 'themejunkie' ) ); ?></span>
			</p>		
		</li>
		<?php endwhile; wp_reset_query(); ?>
	</ul>
		
	<?php 
		$permalink_structure = get_option('permalink_structure'); 
		echo '<p class="more"><a href="'.get_bloginfo('url');
		if($permalink_structure == '') 
			echo  '/?paged=1';
		else 
			echo '/page/1/';
		echo '" title="">';
		_e('Más noticias &raquo;','themejunkie');
		echo '</a></p>';
	?>
	<div class="clear"></div>
</div> <!--end #latest-->

¿Qué tengo que modificar?

- - - Actualizado - - -

¿Alguien por ahí?
 
Atrás
Arriba