Assuming your function runs generally, to limit it to a specific page use
if( is_page( 2094 ) ) {
add_filter("sjb_job_location_filter_args","exclude_jobs_locations_uk");
}
The location of the function definition doesn’t matter.
P.S. Regarding excluding categories . . . yeah, we’d need to know a lot more about what’s going on with the called (plugin?) function
Related Posts:
- exclude category from get_posts?
- Exclude the category from the WordPress loop
- Exclude certain category from latest updates
- Exclude categories from Loop, queries, widgets, post navigation
- List posts by category exclude current post
- wp_list_categories exclude not working
- Excluding a category from next and previous post links
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to exclude categories from recent posts, recent comments & category widgets?
- Exclude a category from the filed under list only on some templates
- How to exclude posts from a category when using this particular format
- Exclude category from Tag Template
- exclude post from displaying in loop if it is in a category, but not in many categories
- I need to create a search form that will display search results from specific category
- Exclude Posts From Specific Category from Next and Previous post links
- Query Posts Exclude Entire Category
- exclude categories from search results
- Exclude category from fucntion
- WordPress category widget only show categories with children
- wp_list_pages() exclude category
- Exclude category from query
- Functions.php: Exclude Category from “Blog”
- Woocommerce filter function not updating
- wp_list_categories not excluing multiple ids
- How to exclude posts from category posts count
- Exclude category from foreach loop
- Have posts that belong to multiple categories, exclude some categories from homepage
- Exclude all subcategories in the_category (post)
- I need to exclude from a query a category and a few custom taxonomies
- Exclude categories by ID
- Homepage custom recent news
- Exclude the category in WordPress
- How can I exclude a category from the main loop with the category name & not ID?
- User level categories
- Exclude category from drop down list form
- exclude certain categories form archive widget
- How to remove an item from a custom Walker_Nav_Menu
- Exclude a category and post_type from wp_query
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Exclude category from WP_Query args not working
- Displaying Category in sidebar post widget but not in the loop on home
- Category menu that filters out empty categories
- Problems with explode [closed]
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to have a category not show up in query post with page panigation?
- Customize category query in widget
- Excluding cateory not working on my site. how to solve this? [closed]
- How to define category ID in an array?
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Get Default Post Category From Settings
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- Categories – create a new separate set right after the default?
- How to select product category while adding new product in woocommerce? [closed]
- How do I count how many top level categories there are?
- display most popular tags of category?
- Exclude category from loop not working
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- List archived posts by subcategory
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- Show Different Custom Menu on Different Category Pages
- How to get the id from the custom category?
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- WP didn’t redirect to canonical category URL
- WP admin broken. Not saving catgories or adding categories to menu
- Set colors depending on category
- get_terms function not returning anything
- Getting All Post From Specific category in wpdb
- Jigoshop – only displaying 10 products
- Is there a way to only show Custom Meta Data on single posts from certain catagories
- display a widget on specific category and its sub categories
- How to hide category
- How to remove the category from post slug
- Assign a custom post to a custom taxonomy based on custom field value
- How can i show categories of custom post
- How to show only child categories using the_category();
- Exclude posts without category from loop
- remove url from categories
- how to style show_count in wp_list_categories()
- Why in the e-mail notification about a new post published, the category of the post is always: Uncategorized
- Page category filter in admin dashboard
- How to get immediate children of a ‘term’ parent id through ‘get_terms’?
- Identify a single category and output some code on an archive page
- front end add category to new post
- Is there a way to fetch the category of a page when using wp_list_pages?
- How to delete WooCommerce categories in bulk that only have one product
- Print categories and most viewed articles
- ACF Gallery with Media Categories – how do display categories and sort
- How to add a new child category via an SQL statement?
- Several loop in search result
- categories and sub-categories of posts are wrongly saved in DB
- Recent posts in current category?
- How can I offer different RSS-Feeds by category?
- Printing out Main Category ID’s in a Loop
- Get first category only and excluding one
- How to remove the category from the url only for a specific category of articles on wordpress