I would make some assumptions:
- Not using custom table
- All resumes are with a post type of resume
- You are comfortable with some sql
SELECT * FROM wp_posts wp WHERE wp.post_type="resume" AND wp.post_author NOT IN ( SELECT distinct wu.umeta_id FROM wp_usermeta wu WHERE wu.meta_key='exclude_from_search' AND wu.meta_value="the_company_id" );
The basic idea is to first get all the ids of users don’t want to show the resumes for a particular company. After that is straight on to select depending of you filtering process.
The reason why I din’t use a custom table is because of the power of the meta fields that can support multiple values(entries) for the same meta_key and user_id. This can help you keep track of all the user preferences depending on the hidden of resumes.
Related Posts:
- Hide prices and checkout functionality in woocommerce
- Alter how often WordPress Auto-Updates Plugins
- How can I find plugins’ slug?
- How to get a variable number of posts per post type on the main loop?
- My custom made plugin has “a new version available” which links to unrelated plugin
- Link to Download Latest WordPress PLUGIN Version
- Difference between deactivating, uninstalling, and deleting plugins
- How exactly does Bad Behavior plugin work?
- How to fetch serialized data from wordpress options
- plugin get value from admin panel page
- WordPress network: set themes and plugins for new blog
- Advanced Custom Fields into functions.php
- How can I get a list of plugins and which blogs are using them?
- How WordPress autosave can save plugin fields?
- nonces in custom oop plugin
- Custom Text Under Navigation Links
- How do I know which plugin uses the most resource?
- Set a category for a page
- How to redirect a Custom Google Search to a wordpress page/template?
- Wp die causing 500 Internal Server Error?
- force customers to add only single item to card per purchase EDD [closed]
- Preventing BFA in WordPress without using a plugin
- How to obtain page breadcrumb based on menu structure only?
- Multisite installation but do plugins always have to be multisite compatible?
- Manually add order item with fixed product_id in WooCommerce
- 404 Error on Activate / Deactivate Plugin
- Weird lightbox phenomenon [closed]
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Reduce Drop down Menu Width in WordPress
- WordPress get_option and update_option returned entered on the textbox field
- issues with wp_enqueue_script in my plugin
- AddToAny shortcode in the loop
- How can I perform high-level database merging for WordPress within continues delivery?
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- How to inform the user that the save was not successful?
- php page not found for plugin options menu
- Include live chat plugin into page content
- Self-serve ad system like Reddit’s for WordPress? [closed]
- How to password protect a category page / not posts?
- Plugin to create forms using HTML [closed]
- Call plugin with php function
- Custom setup of wordpress comments that are displayed
- Render content of multiple pages and their descendants
- Overriding post’s font-family
- How to keep variable `$post` to using in another file
- Best portfolio/gallery/carousel slideshow plugin with thickbox? [closed]
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- WordPress Custom Pages that work with Plugins?
- How to use the CSS of the WordPress core in the development of my administration page?
- Plugin – Admin menu page broken url
- Hide DIV if empty – Plugin Gallery
- how to make dynamic subdomain for each user registering?
- Call Ajax URL in Plugin
- Retrieve Plugin Settings and insert into XML string
- using add_action without having custom plugin or theme
- Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?
- Using Microsift Word/Outlook for content publishing to WordPress
- Defining the value of a variable before a function?
- What archive plugin works with W3 total cache? [closed]
- Theme deactived html and css styling on home page posts
- Website Captcha Error: The reCAPTCHA wasn’t entered correctly
- How do I send the contents of a form to deliver to the already existing custom field in the wordpress theme
- WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin
- WordPress plugins – “Update” in backend vs replacing all files with never version
- How to hide featured images of all posts falling under the same category in wordpress?
- Error datatable whit ajax
- How can I change a translation for a string in a plugin?
- New posts are not showing up on my front page
- Multisite – Cloning CPT pages + content (including ACF Flexible Content) from site to site
- Can’t Edit Row Layout on SiteOrigin Plugin
- Applying module CSS to page
- How can I recreate my HTML page with custom grid layout (blocks spanning rows and columns) in WordPress?
- Nested Actions and Filters
- WordPress products authentication
- Create dynamic / data driven pages in wordpress
- Saving data only when payment is successful
- Creating a plugin to show a pop-up banner on every page
- Plugin sending emails to external addresses, not internal
- Plugin doesn’t update it’s version and code on WordPress.org
- User Affiliate Token Generator?
- jQuery to show icon after .hide
- Insert Plugin on a custom page
- WordPress Theme/Plugin Install (about FTP Connection)
- RSS Feed has no Items (Possible Plugins Conflict)
- How to set the captcha at the bottom of comments textarea
- How do I get WooCommerce to recreate the home page?
- conditional tags for the output of a plugin
- Change post permalink to external URL from custom field
- how to debug shipping module / class
- single.php fires more than once after clicking on any post to view with different post id each time
- How to display a link in the footer section
- WordPress Plugin: Where should I put my cookies for cURL?
- WP Members additional fields on user profile [closed]
- Save post to category with gravity forms (post_data) [closed]
- How do I edit a plugin’s core properly?
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page
- Pulsing circle before the post title (Breaking news flash)
- Adding fontAwesome to Primary Menu returns after saving the menu
- I start to make custom plugin but for some reason is not working, i get no error. Can someone help me? Thanks