Skip to content

Instantly share code, notes, and snippets.

@davoraltman
Last active May 25, 2017 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davoraltman/2370b6efdd231308c28023fff44c0c45 to your computer and use it in GitHub Desktop.
Save davoraltman/2370b6efdd231308c28023fff44c0c45 to your computer and use it in GitHub Desktop.
function get_category_jobs_daki() {
$term = get_term( 31, 'job_listing_category' );
$slug = $term->slug;
$posts = get_posts('job_listing_category=' . $slug . '&post_type=job_listing');
return $count = count($posts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment