Skip to content

Instantly share code, notes, and snippets.

@pedroelsner
Created July 23, 2012 00:13
Show Gist options
  • Save pedroelsner/3161438 to your computer and use it in GitHub Desktop.
Save pedroelsner/3161438 to your computer and use it in GitHub Desktop.
#3 - WP_query personalizado
<?php
// Seleciona todos os posts publicados
$query = new WP_query(
array(
'post_type' => 'post',
'post_status' => 'publish',
'title_like' => 'Treinamento%'
)
);
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment