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:
- Add Google Analytics manually, or use a plug-in?
- Custom pages with plugin
- How to catch/what to do with a WP Error Object
- How can I see all the actions attached to an “add_action” hook?
- Do plugin files have to follow a specific convention to be “picked up” by WordPress?
- Can’t set proper WooCommerce language translation [closed]
- Echo simple string in Plugin
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- how does wp.media javascript library work?
- Updating WooCommerce variable product stock issue
- Intercepting a add_action
- WordPress pods io – Rest API for fetching fields information for custom post type
- How can I show drafts in wp_dropdown_pages list?
- Include files for a plugin not including
- Missing argument 2 for wpdb::prepare() Issue
- Can Not Redirect from Plugin-Registered Admin Page
- flush rewrite rules doesn’t flush them (still got 404)
- Why does my hand-written plugin installer fail to find `request_filesystem_credentials`?
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- How to make a WP admin button/menu similar to Jetpack Notifications?
- How to upload thousands of images?
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- add_meta_box (Will display only in specific page admin WordPress)
- Why is wp-cron only executing on page visit?
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- WordPress Automatic Plugin Update Renames Plugin Directory
- RW Meta Box ,Problem setting post title
- When to call add_filter
- Create a list-style post of popular posts for the week?
- Date calculations from 2 custom fields
- Easiest way to add dropdown to a page
- WPBakery JS composer unused css [closed]
- DROP TABLE with uninstall hook not working
- How to save generated JWT token to cookies on login?
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- How to replace wordpress default text editor (TinyMCE) with a custom one.
- How to load wp_editor via AJAX
- Setup page on first login on multisite
- Constant Contact plugin forbidden error
- Know which plugin is calling JS in wp_head()?
- How do I disable an update for a specific plugin?
- changing posts layout in ultimate member profile plugin
- WooCommerce Force Display of Base Country Order Addresses
- Security and Must Use Plugins
- Problems with migrating a WooCommerce orders [closed]
- Get User_id outside wordpress,
- echo statement displayed on front end
- Editing wp-config.php
- Plugin Activation Error – The plugin generated 22 characters of unexpected output during activation
- Change the layout of action links under the plugin names
- The add_action(‘register_form’) isn’t effecting my registration form
- Store plugin page content in wp_options?
- HTTPS connection with wampserver for “Facebook for WordPress” plugin
- Each User has a Personal Blog
- WordPress Stats Plugin: Display Post Views [closed]
- Pagination not working
- looking for a multi-user hello-world plugin
- Unable to use custom taxonomy with front end post form
- Bulk User Deletion
- Links to plugin files not resolving
- product available stock day by day
- How to search post titles with whole words only, but not the exact word only?
- Can I disable xml-rpc by setting it to false?
- Cron: Update four post at Hour
- Share my WordPress plugin for updating how?
- Add post attachment images their links
- elementor development – custom widget like an inner section widget
- How can I change page content for good once a button is pressed?
- Google Maps for Woocommerce Checkout
- WordPress Admin login redirect to homepage
- Get and Update Most Meta Value as an array in HTML form
- How to upload PDF from Front-End and post automatically?
- WordPress error after installing plugin “Internal Server Error” [closed]
- ACF Taxonomy search on backend (Relationship field)
- Template conflict with WC Payment Method
- Hook on widget context plugin to add custom context for widget
- Customize a widget position
- How to add featured image on front end form?
- Can’t get paramaters from url page of content
- Admin Logged In Notify Globaly
- Editing Global Variables from Inside Functions
- building custom simple shopping cart using wordpress plugin
- Posting code inside the post instead of in the template file using shortcode
- How to use Repeater field of advance custom field
- Scrolling Ads? Live scrolling widget, not random on refresh
- overwrite a plugin function in functions.php
- How to list the categories by custom taxonomy created?
- Allow users to enter and edit data in one-to-many configuration
- From a legal perspective, is it okay to customize a plugin’s code?
- How to make is_admin() return false when I need it to?
- Facebook comment into my blog
- Distribute post content through several divs [closed]
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- contact form 7 captcha support anyother captcha plugin? [closed]
- How can I utilize the same “show more” functionality that I see in superuser on my own WordPress site?
- WDTException: [0]: One or more columns doesn’t have a header
- Footer option is missing in Customiser
- Is Nonce Verification (CSRF) required for WordPress Custom Bulk User Actions?
- List Hidden Plugins
- Plugin for better Backend Search? [closed]