-
-
Save wpmark/cab496ab147c2d543b0961b338131aaa to your computer and use it in GitHub Desktop.
A simple example of using WP_Query extensibly.
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( | |
apply_filters( | |
'wpmark_job_query_args', | |
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