New Listings Widget : Recent job posts from only your site but not from indeed
HI
I am trying to get only the jobs posted on my site in the New Listings widget......
I have modified line 399 as follows in theme-widgets.php:
from:
$r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'post_type' => 'job_listing', 'caller_get_posts' => 1));
To:
$r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'post_type' => 'job_listing', 'caller_get_posts' => 1, 'cat' => -24 ));
Cat 24 is indeed jobs category in my site. I want to exclude it from the New Listings widget.............
Still it brings the indeed ones also....
Any help will be greatly appreciated...............
Thanks
A