Something like this:
Make an URL like /companies/?leaders
Than in your archive template (top):
if(isset($_GET['leaders'])) {
global $query_string;
$query_string = $query_string . '&meta_key=leaders&meta_value=yes';
query_posts($query_string);
}
Hope this helps.
Related Posts:
- How do I create a meta box for dates?
- Access the environment of an admin page from another admin page
- Why can’t I hook into save_posts after admin_init?
- Custom Metabox with Ajax in Edit Post – Stuck
- Show how many images are attached to a post/page on compose page
- How to create a button click counter meta box?
- Display Content if Meta Checkbox is checked?
- Reload meta box content with AJAX
- Set Default Admin Screen options & Metabox Order
- How to set default screen options?
- Add “upload media” button in meta box field
- Does WordPress have a “Form API”?
- Best practices for meta box placement?
- The correct method to pass query vars in AJAX using ajaxurl
- Hiding a theme’s meta box
- Block metabox – No expanding, no moving around
- Metabox cloning via Admin Ajax call issue
- add_meta_box does not go ‘side’
- Getting jQuery sortable items in custom metabox
- How do I stop HTML entities in a custom meta box from being un-htmlentitied?
- Run again current query via ajax but changing a var
- get_post_meta doesn’t work
- Remove border on custom meta box
- Create a page Meta Box listing all blog users
- Position right sidebar metabox right below the publish metabox?
- MetaBox Layout for all users
- How to store multiple input values with same meta_key
- post-excerpt not one of the options under screen options
- How to remove/hide the predictive autocomplete popup when I type in the tag/term metabox
- make a excerpt on data from a meta box?
- metabox upload file
- How to add a SAVE button to replace PUBLISH on a custom post type?
- Why does get_post_meta not work with the posts page?
- Add_meta_box not appearing, but does appear in screen options
- update_post_meta and get_post_meta not working
- Convert textarea with wp_editor
- Repeatable custom meta fields
- Get all meta boxes values
- metabox with custom post type values
- Decide Metabox Configurations for All Users
- metabox select – frontend display
- Dashboard – get status and position of metaboxes and pass them to ajax method
- How to detect if metabox content was updated by the user
- how to save and get selected item id list with add_meta_box
- Adding metabox to wordpress plugins menu page
- How to add select list to meta box field?
- Get meta fields by meta box id
- How do you List all Sidebars in a Metabox
- Create more Meta Boxes as needed
- Condition display metabox in case the post is saved
- Save meta value as an array of arrays
- Add a meta box to ALL Pages
- How to add metabox ONLY to specific WooCommerce product type [closed]
- input radio ‘checked’ saves, but select option ‘selected’ doesn’t
- wpalchemi metabox doesn’t show value from my post type
- HTML Table creator in metabox to put into post theme
- $post->ID not working in combination with a custom query
- Shortcode to pull posts
- edit_page or edit-pages for current_user_can()?
- Editor meta box Showing but not saving
- Insert media button will always add into the same tinyMCE editor
- Change the title of an Administration Panel
- echo the value of a a meta select box
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- Can I include get_posts in this array?
- save radio button selection in post-meta on submit
- Custom meta box data in rss feed
- ShortCut on meta boxes
- Post edit screen: How to check if meta_box is registered?
- WordPress Conditional / Multiple Taxonomy Query
- How to ‘clone’ select metabox options with a callback function? [closed]
- Saving multiple fields (dropdown and text) in custom metabox
- metabox dosn’t save with checkbox of post_type values order by taxonomy
- save meta data of custom post type: WP_Error has no effect, even if insufficient capabilities
- display all registered meta boxes
- where can i see the registered new field for posts using register_meta() ?
- update_post_meta doesn’t work
- Is there default meta boxes types that handles types and sanitization?
- delete post meta data in array WordPress
- Query by meta value (add a dropdown of all values)
- AJAX load more posts not using correct category and repeating the same few posts
- how to update editor content from metabox
- WordPress AJAX load post metadata in modal
- Only allow one meta key value per post in a category
- How to fetch meta_value and meta_key in matrix after ajax request by post_id
- Ridiculous problem with CDATA [duplicate]
- Can’t save drop down select date in meta boxes
- WordPress check if value equals and echo “checked”
- Custom metabox for file upload return empty filename
- Video slideshow
- Meta Box Value not saving / populating?
- How to set default screen options?
- Option to delete value in metabox
- why esc_url not working in smartmetabox
- Change Default Custom Fields Metabox Name on cctm plugin
- Form submit from modal window to parent window
- How to display meta box data using “Meta boxes as needed”
- CPT posts in drop downed in meta box on page doesn’t return post ID
- How to make remove display none to this div container in post meta box?
- how making a selection from a taxonomy selector fixed definitively