Last active
January 12, 2017 03:15
-
-
Save lowhow/832e9ee7ede51a90acd481a92a194d71 to your computer and use it in GitHub Desktop.
WordPress Custom Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array( | |
'posts_per_page' => 1, | |
'category_name' => 'travel-masters' | |
); | |
query_posts($args); | |
if (have_posts()) : | |
while (have_posts()) : the_post(); | |
/**Your action goes here*/ | |
endwhile; | |
endif; | |
wp_reset_query(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment