The concept of same meta field values being relative to each other isn’t native to WordPress.
On top of my head you could create second meta field, which would express that relativeness as a number. So president is 1, vice president 2 and so on. This would be a pain to adjust if the hierarchy changes in future though.
Related Posts:
- Create multiple Search functions for posts / custom post types and everything
- pre_get_posts and search query for admin
- Search function works improperly
- Force is_search to always TRUE
- How to conditionally pass a parameter to wordpress search to limit post types?
- How to exclude pages from WP search based on page title
- why pre_get_posts works fine in post type archive, but not in search result list?
- Search for two strings in WP search
- Displaying number of search results for each post type
- Search custom posts by meta key in admin
- pre_get_posts improperly searching revisions
- WP search in metadata post
- meta field search too restrictive in pre_get_post() for custom search
- search filter for search and tag page doesn’t work
- How to search for (partial match) display names of WordPress users?
- How can i move search results onto a specific page?
- Unified search across separate WordPress installations
- How to insert a span inside a search form?
- Search only blog posts (default WP search widget)
- Exclude pages from WordPress search result page
- Disable Redirect to Product Page on Search Results Page in WooCommerce [closed]
- Combining Meta_Query key values for one array
- Search: Only One Result Returned
- How to redirect search result page to post
- Include Author profile in search results
- Adding arg to search results page
- I’m trying to expand the scope of the default WP search algorithm. What am I doing wrong?
- How to return HTTP 404 when no search results found?
- Change query variable for wordpress search
- Search Results: Differentiate posts and pages
- Highlight Search Results in Function.php
- How to make a search form?
- Change searched term
- Using ElasticSearch on WordPress
- How to restrict wordpress search to pages and disable products listing search?
- WordPress does not find author pages in search
- Search Everything & WP 3.7 update issues [closed]
- Creating a Search Array From Multiple Tables
- Installing Solr for dedicated search
- custom wp_dropdown_categories items in wordpress
- How do I make search only search in post content?
- How can i preserve wordpress database encoding after using wp-cli search-replace with –export flag?
- Replace/Mute/Stop Search Query
- How to sort by columns within a search result without displaying all rows again after sorting
- How to add re-captcha to wordpress search?
- Where should I start looking if I want to implement my own custom search?
- Knowledge base high performance Live Search
- Limit search to a specific folder in website
- How do i append UNION SQL Query with default search query
- How to add one more query string with search query string
- Why is this search form not submitting when button is clicked?
- Search by meta_query
- Restrict Search Results to Post Author
- Intelligent Search Filtering
- How to search titles/artist/album within a playlist, and only lists the results that match?
- Custom search page wont allow URL params
- How to detect if the referer is 404 page?
- Get the search element only on 404
- Specific website content
- Second page (and next) of search results redirects me to the home page
- search results to a variable in search.php
- Load search results into a div
- Search in posts’ attachments: title, caption, description
- Exclude certain Gutenberg blocks from search results
- How to order search results so a specific page appears first when user searches for a particular word?
- make link to search page
- Search results thumbnails different size
- WordPress User Search Based on Latitude and Longitude
- Remove gray header on Search Result page on WordPress
- How do i get The dropdown to have the value of the sub cat and custom fields
- Why are archived pages showing up in searches and able to be accessed?
- Enable query based wordpress search ?s=
- Partial searches for wp_usermeta
- Search terms in other language turns out to question mark and symbols
- Adding thumbnail to search results & changing content.php
- Create a custom and powerful search form
- How to search for categories instead of products in Woocommerce?
- Search results show only content by admin post authors
- Buddypress Activity search with OR query instead of AND
- Include attachments with a custom taxonomy in search
- pre_get_posts not firing at all
- How to exclude one post format from search result?
- Help with WordPress search
- Custom Search Form WP_Meta_Query – Filtering Custom Fields
- Search not displaying results
- Relevanssi show only 1 result
- I need a custom search page to lead to search.php but it goes to index.php
- How To Change Url Doing Some Changes in Search Form
- Adding search box for admin on custom admin page
- Different search results with WordPress and Relevanssi
- “feed” added at the end of my URLs
- Disable – Post search field – for non-admin roles in WP dashboard
- Search results heading and counter not working – Oxygen Builder
- Search for meta_query does not return any result if combined with title
- Blocking spambots from Search form
- How to search WordPress for content specifically in title?
- How to make the search form in “Add media” search custom attachment fields?
- Why is my site removing $_GET and hyphenating my search term?
- Search for portfolio tags & mixing portfoliotags and post tags
- How to allow searching a custom meta key in admin list table?