Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple example of using WP_Query extensibly.
<?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