Advertisement
Guest User

Untitled

a guest
Jul 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $um = new WP_Query(
  2.                         array(
  3.                                 'post_type'            => 'galerias',
  4.                                 'posts_per_page'    => 1,
  5.                 'galerias-category' => 'um' //Assumindo que o slug do termo 'Um' é um'
  6.                         )
  7.                     );
  8.  
  9. /*
  10. Este loop irá retornar todos os posts cujo post_type seja galeria e que possua o termo (um) associado a uma taxonomia (slug_da_sua_taxonomia_galeria)
  11. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement