Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $amor = new WP_Query(array(
- 'post_type' => 'testes',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'categorias_testes',
- 'field' => 'slug',
- 'terms' => 'amor'
- )
- )
- ));
- $amizade = new WP_Query(array(
- 'post_type' => 'testes',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'categorias_testes',
- 'field' => 'slug',
- 'terms' => 'amizade'
- )
- )
- ));
- ?>
- AMOR
- <?php if ($amor->have_posts()) : while($amor->have_posts()) : $amor->the_post(); ?>
- <?php the_post_thumbnail('thumbnail'); ?>
- <a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- <?php endwhile; else : ?>
- 404
- <?php endif; ?>
- AMIZADE
- <?php if ($amizade->have_posts()) : while($amizade->have_posts()) : $amizade->the_post(); ?>
- <?php the_post_thumbnail('thumbnail'); ?>
- <a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- <?php endwhile; else : ?>
- 404
- <?php endif; ?>
Add Comment
Please, Sign In to add comment