All Questions
Tagged with search custom-field
110
questions
1
vote
2
answers
2k
views
How to include custom fields in wordpress search
As you know WordPress search only look at the post titles and contents, but I want the search to include also a custom field. Let me explain more:
Consider a movie post with the title "Fast Five&...
0
votes
0
answers
279
views
Extend search query to search meta keys values based on search string
I want to create an autocomplete AJAX search and I'm trying to have it where when the user starts typing, the list populates titles matching that search string.
My issue is in the WP_query, because I ...
0
votes
2
answers
51
views
Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
So I have a complex list of ACF repeaters for ingredients, but have a save hook to store them all as one comma delimited text string in a custom field to help. My current "advanced" search ...
0
votes
0
answers
56
views
Best approach to make all tags searchable by the wordpress search function
I have over 2000 tags on one of my sites and I like them to be searchable by the wordpress search function.
The problem is if I use a plugin, the time it takes to search them all is enormous.
I think ...
0
votes
1
answer
858
views
Custom Taxonomy Search result page
I have a post type named Icons,
I have a custom taxonomy named Icons Pack which have a custom field for featured image.
Also I have a search form in my site for users to search for the icons they want ...
0
votes
2
answers
158
views
Include custom fields in search
I have a website with several custom fields, however when using the following code to search for a post, it only searches for the title or for the content, excluding the custom fields associated with ...
3
votes
1
answer
281
views
searching in custom meta field
I have multiples custom field in a post type. i can save data, update and display, all fine. now I'm doing the search engine. as it is a library, it must be possible to search in specific fields (...
0
votes
1
answer
1k
views
search custom post type by custom fields on front end
I want to add filter to my site and want to filter custom post type by custom fields
for example i have a custom field with name country when a visitor enter a country it should show all custom post ...
0
votes
0
answers
22
views
Categories In English version showing not canonical URL, instead shows query search result
I have a multilingual site (WPML), it has Hebrew and English languages. But for some reason in English version categories showing as query string instead of just pass it through URL. What issue can ...
0
votes
1
answer
65
views
Category Search / Custom Post Type search on my website. Custom Post Types that are "page-like"?
I am creating an educational website and some of my pages are "subjects" like math, physics etc and I want them to be searchable. How do I do this? I thought that it would be easy if I just made a ...
1
vote
0
answers
25
views
Making custom field serchable in woocommerce [duplicate]
I have a product field which is by default in the woocommerce and i have added another field custom field (ACF) which is stock_number on my product/shop page i can search for products by title only i ...
0
votes
1
answer
315
views
What is the correct way to search 3 custom fields only in WordPress?
I have three custom fields (not using ACF). I want the search form to search for a match in:
_cth_featured_zip_code_1
_cth_featured_zip_code_2
_cth_featured_zip_code_3
This is the query I've ...
0
votes
1
answer
447
views
search based on custom field
My question is, is there a way to configure wordpress' search to, within a custom post type, search for a custom field value.
//------------html code--------------------//
<input type="text" name="...
1
vote
1
answer
119
views
Advanced search by two criteria - sort by location and date (ascending or descending)
I have spent a couple of days working on this and I am still not able to figure it out. I am trying to make advanced search filter that sorts posts from a specific category on two criteria: location (...
0
votes
1
answer
118
views
Very large list of options for BuddyPress profile fields
I’m making a site with BuddyPress xprofile fields which can have up to 40000 options. I already loaded the options into the db via csv file. Now the site loads very slowly and is basically unusable. ...