Skip to content

Instantly share code, notes, and snippets.

@cdmz
Created July 16, 2015 16:30
Show Gist options
  • Save cdmz/874acbe59ef56100ed0b to your computer and use it in GitHub Desktop.
Save cdmz/874acbe59ef56100ed0b to your computer and use it in GitHub Desktop.
wp-query post type laco
<?php
wp_reset_query();
$wp_query = new WP_Query();
$query = $wp_query->query("post_type=sms-categories");
while ($wp_query->have_posts())
{
$wp_query->the_post();
?>
//put your code here
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment