Ivory Search › Forums › Support › I cant put my key into my profile
Tagged: meta_value
- This topic has 28 replies, 2 voices, and was last updated 5 months, 1 week ago by
Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- August 29, 2025 at 1:01 AM #25834
everytime i put my key into my profile it says it is not valid.
I want to ask a question to support:
I want to make pages jump to the top of search page.
I dont understand what meta_value option - August 29, 2025 at 2:27 PM #25839
I hope you are well today, and thank you for your questions.
everytime i put my key into my profile it says it is not valid.
I want to ask a question to support:It’s a temporarily server issue that will be resolved soon in the meantime you can get support by directly asking questions here or by sending an email to admin@ivorysearch.com
I want to make pages jump to the top of search page.
I am not sure exactly what you want to achieve, so could you please deribe it a bit more?
I dont understand what meta_value option
In WordPress, meta_value refers to the value associated with a custom field (or post meta) for a specific post, page, or other post type.
Here’s a breakdown:Custom Fields (Post Meta):
WordPress allows you to store additional, arbitrary data related to your content beyond the standard title, content, and date. This data is stored as “custom fields” or “post meta.”meta_key and meta_value:
Each custom field consists of a meta_key (the name of the custom field) and a meta_value (the data stored for that custom field). For example, if you have a custom field named book_author, book_author is the meta_key, and “Jane Doe” would be a meta_value for a specific book post.Best regards,
Ivory Search Support - August 29, 2025 at 6:07 PM #25840
ok, i have created a custom field called me_first, i will put a value of 1 into the “pages” that i want to be shown first in the search.
how do i accomplish this using search order “meta_value”. How do i choose that custom field to sort by? - August 29, 2025 at 6:21 PM #25841
I am basically try to make certain “pages” with categories of “module” and “case studies” sticky also so that they show up at the top of the search order. so i was going to create a new custom field that would be “me_first” and a value of 1, those would be put first.
- August 30, 2025 at 6:33 PM #25855
You can achieve this by configuring the search form options as shown in the attached screenshots.
Attachments:
You must be logged in to view attached files. - September 2, 2025 at 3:34 AM #25883
I created a custom field called “Search Order Hierarchy” with a value ranging from 1-3.
I changed all the pages that i wanted to show higher in the rankings to 1.
I set up the search results as you showed.This Didnt work.
I have attached the screen shots.
Attachments:
You must be logged in to view attached files. - September 2, 2025 at 5:16 PM #25889
Are you using the Inverted Index search engine?
If yes, then could you please temporarily use the “Default WordPress Search Engine” instead of “Inverted Index Search Engine” in the Options of the search form to see whether it works fine?
Also, please try using the solution below.
- September 2, 2025 at 7:10 PM #25890
I changed it to default. It now takes forever to search.
The “Modules” category should be at the top of the order because all of them have a custom field “search_order_hierarchy” = 1Attachments:
You must be logged in to view attached files. - September 2, 2025 at 8:47 PM #25892
I re-indexed the site making sure that the custom field “search_order_hierarchy” was included.
Then i tried searching with reverse index, still didnt work. - September 3, 2025 at 7:57 PM #25908
Would you mind if I log in to your site and do quick troubleshooting? If this is ok then could you please temporarily create an admin user account and share the account login details privately by checking the option “Set as private reply” when replying to this topic?
- September 3, 2025 at 8:00 PM #25909This reply has been marked as private.
- September 3, 2025 at 8:02 PM #25910
My IP address is as below.
IPv6: 2405:201:100f:f80d:3bda:f90e:a432:90c6
IPv4: 49.36.51.111 - September 3, 2025 at 8:34 PM #25911This reply has been marked as private.
- September 3, 2025 at 8:37 PM #25912This reply has been marked as private.
- September 3, 2025 at 9:12 PM #25913This reply has been marked as private.
- September 4, 2025 at 6:21 PM #25918This reply has been marked as private.
- September 5, 2025 at 5:50 PM #25926
I logged into your website, and it seems the meta_value_num option is changing the search order as shown in the attached screenshots.
Please note that the sorting will be alphabetical which is fine for strings (i.e. words), but can be unexpected for numbers (e.g. 1, 3, 34, 4, 56, 6, etc, rather than 1, 3, 4, 6, 34, 56 as you might naturally expect).
Attachments:
You must be logged in to view attached files. - September 5, 2025 at 7:41 PM #25930This reply has been marked as private.
- September 5, 2025 at 11:34 PM #25933
how can you tell they are being ordered by meta_value besides what the settings are?
is there a way to tell what it is sorting by after a search happens on the page? - September 8, 2025 at 11:44 PM #25958
Can you help me? if it truly is using the meta_value to order them first, then why are the ones in module category who also have a meta_value of 1 not showing up first?
- September 9, 2025 at 5:10 PM #25962
Could you please tell me where you have used the below code on your website?
You have to change the “meta_key_name” in the above code.
- September 9, 2025 at 11:01 PM #25965
not sure what you are asking for.
Attached is the Advanced Custom FieldAttachments:
You must be logged in to view attached files. - September 16, 2025 at 5:22 AM #26048
I created a new site and trying to do the same thing and the order by meta is not working on a barebones site.
Are you able to show on a demo that this sorting of a custom field works? - September 16, 2025 at 7:38 PM #26065This reply has been marked as private.
- September 16, 2025 at 7:58 PM #26068
Please try using the below code and change the “meta_key_name” in the code.
function func_is_pre_get_posts( $query ){ $query->set( 'meta_key', 'meta_key_name' ); } add_action('is_pre_get_posts', 'func_is_pre_get_posts'); - September 23, 2025 at 10:11 PM #26171
I get the following when i search.
Attachments:
You must be logged in to view attached files. - September 23, 2025 at 10:12 PM #26173
i added the code.
- September 23, 2025 at 10:28 PM #26174
Sorry, that code does work. What if the pages dont have the meta? will it show them after the meta pages?
- September 24, 2025 at 6:12 PM #26182
You have to develop custom code to add pages that don’t have the meta.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login