-
-
Save wpmark/d1b09fd43e33f4089b2df486121e39a2 to your computer and use it in GitHub Desktop.
A simple example of using WP_Query
This file contains 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
<?php | |
// run a query for the latest 10 jobs. | |
$jobs = new WP_Query( | |
array( | |
'posts_per_page' => 10, | |
'post_type => 'wpmark_job', | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment