Skip to content

Instantly share code, notes, and snippets.

@axxe16
Last active November 9, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axxe16/087fdca3975cd466e2f03104677eb989 to your computer and use it in GitHub Desktop.
Save axxe16/087fdca3975cd466e2f03104677eb989 to your computer and use it in GitHub Desktop.
wp_query per più custom type e ricevere solo gli id *WPM* #WP_query #custom_type
$query = new WP_Query( array(
'post_type' => array('salplesk_profili','salplesk_aziende','salplesk_offerte'),
'posts_per_page' => -1,
'fields' => 'ids'
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment