Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/* add live job count on job search */
jQuery( document ).ready( function ( $ ) {
$('div.job_listings').on('updated_results', (function(_this) {
return function(event, results) {
$('#titlebar .count_jobs').html(results.post_count);

LiseaCa commented Sep 29, 2017

Is it possible to show job count on any pages or posts not only in job search. It will like show number of active jobs. I applied the step 1 and 2 but cannot set the step 3 as my theme has a lot of js files and I do not know which use.

Please advise.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment