Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
E ai Galera
Estou usando o tema Twenty Ten 1.0 e estou implementando algumas modificações nele. Preciso mostrar uma categoria específica na pagina inicial, esse tema não usa query_post('cat=xx') ele usa a função " in_category " para mostrar os posts por categoria.
Porem não consegui filtrar a categoria que eu preciso.
Abaixo está um pedaço do codigo:
>
<?php /* How to display posts in the Gallery category. */ ?>
<?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="entry-meta">
<?php twentyten_posted_on(); ?>
</div><!-- .entry-meta -->
<div class="entry-content">
<?php if ( post_password_required() ) : ?>
<?php the_content(); ?>
Alguem sabe informar como usar o ( in_category ) para mostrar um categoria de posts específico.
Valeu Galera
Desde já agradeço.
at++
E ai pessoal
Ninguem conhece como usar o "in_category" no tema twenty ten ???
Carregando comentários...