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
- How can I implement a location based (zip code) search in WordPress?
- How to highlight search terms without plugin
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Complex Search functionality. Advice needed
- How to use next_post_link and previous_post_link on single posts in search results
- Why is there a class=”screen-reader-text” on my search button?
- can’t limit search to only pages
- Search pre_get_posts filter which can handle multiple post types and categories?
- How to exclude post body from WP search
- Search outside of the “loop”
- Replace URL with Site Title in Search Results
- Force WP to use a certain search template
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Display title for search engine visitors
- How to avoid the specific page while searching in WordPress without plugin?
- Best way to Integrate Google Search?
- Including only current user’s posts in search
- How to add additional search terms (e.g. synonyms) to the search?
- Combine internal search with Google custom search?
- Comparing between a negative and positive number
- Any reason why search result lists only one entry?
- Display just child pages of a certain page in search results
- How to make wordpress default search to woocommerce search
- pre_get_posts action: Search by post_title and post_content with different search phrase in the same query
- Why won’t is_search work inside functions.php?
- Search functionality – include date, category and author search
- WordPress Search matching hyphenated words
- How to stop WordPress Search form from searching only in current page?
- How can I make a search form that can search taxonomies and posts?
- How can I include author (their archive page) in search results?
- How to search media library alt text and title fields
- how to create search and filter form generating “plus” symbols in url in between category names?
- Meta query: How do I return posts within a date period from a given month?
- Creating a Searchable PDF Archive of Publications
- Display post titles that match string in post content
- Search – Only search for post meta field
- Search Form Based On Tutorial Not Working
- how to show Author information in search results
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Sitelinks Search box schema confusion
- Display Search Results after search 1st link
- Make archive page show up in search results?
- Connecting Google Site Search with WordPress Taxonomies/Categories/Tags
- Search using WP_Query
- Only display post content in search results
- My search form finds page 1 results but shows “error 404 page not found” on pages 2 on or clicking next
- meta post search
- search page not found? (search.php or searchpage.php)
- Media Library / Backend: How can I search for text in the ALT Text field?
- Rewrite wp function
- How to fetch Email addres of an author via ID?
- How to Fix Form elements do not have associated labels in WordPress Search Form (without button)
- How to exclude specific post_type from default search?
- Search issue on special Character
- Modify main search form to search user too
- Editing a Search Form
- Removing &submit=Search from search parameters?
- customize search result in wordpress
- Highlight search words in excerpt
- $_GET value is losing it’s space
- Search For Custom Post Type and Custom Fields
- Searching on my blog is not working
- “Modular/reusable” content and search results
- Make the title and […] clickable in result search
- Add Search Form to Dropdown menu
- Search doesn’t work with ‘relation’ => ‘OR’
- Add meta tag to search results
- Searchform for searching specific categories
- Selectbox and Searchform and Custom Search Page
- Hightlight search-terms with functions does remove or disable other filters?
- wp_redirect and search engine bots
- SQL: Search query to get attachments only of those parents which are published
- Change the text “search result for” on search result page
- Search redirects to index
- Want to creat a search for my wordpress theme [closed]
- Return 404 for /search/ queries – For Genesis
- Deprecating WordPress URL from Google, promoting custom domain [closed]
- Search with multiple selects that include tags
- Search results from a specific database table
- How do I create a search form that searches only within a custom post type?
- Two Querys in one Search – Category-Tag nightmare – HOW?
- How to make wordpress Dynamic Search-icon from Predesigned Static Html Search-icon?
- Code in the excerpt of the search page
- WordPress REST API response – not returning results from custom taxonomy, only from title
- Members location sortable based on UK Postcode
- I had removed my phone number from my website footer, but months later it still appears once I look it up on google, how to remove it?
- search posts by POST ID