All Questions
224
questions
0
votes
1
answer
19
views
Modify WordPress Search
I'm facing a challenge with a WordPress project and I would appreciate the community's help in solving it.
The issue lies with the search functionality. When customers type in a search term, such as &...
0
votes
0
answers
186
views
Rewrite URL custom search query
I have this url:
mydomain.com/?s="SEARCH TERM"&categoria="WORDPRESS CATEGORY OF POSTS"&province="CUSTOM POST FIELD"&poblacion="CUSTOM POST FIELD"
...
0
votes
2
answers
104
views
Removing filename searches when searching attachments
My website's db is quite big. I have some 350,000 images in the media library (as well as some 350,000 posts). My wp_postmeta table has 4,580,552 rows.
As a result, some queries are insanely slow and ...
0
votes
0
answers
56
views
Advanced Search - Is this possible?
I am currently working on a Wordpress website that needs an advanced search adding to it.
I have three categories set up, each with a set amount of sub-categories, and then I'd like for a user to be ...
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&...
1
vote
0
answers
191
views
Custom Taxonomy in custom REST API search
I am building my first theme where I use a custom search and I would like to include the ability to search by custom taxonomy.
Currently, the taxonomy term shows up in Postman but no posts with that ...
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
0
answers
52
views
AJAX multiple search boxes not merging with array merge
this is a very frustrating problem.
I have some search boxes for different feilds on my site. some are acf meta fields, another is for title, and another for a keyword taxonomy.
But on the front end, ...
0
votes
1
answer
57
views
Search results stuck on page 1
The problem statement
For some reason when the user does a search the results page (search.php) only show the first page results. The pagination (next and previous links) also believes its on page 1.
...
0
votes
0
answers
58
views
Search query alteration not working for meta values
The bellow code works on category archive pages, it filters out the necessary products. But on the search page it doesn't work. If I uncomment the line //$query->set("s", "chelsea&...
0
votes
0
answers
31
views
Searching not only by post name but also category
I have a catalogue of cars, where the post name is car model and category name is car brand.
When im using search like "BMW" it gives 0 results.
How can i make search work with post or ...
0
votes
0
answers
17
views
How can I modify this code to make the search box include tags and meta
How can I modify this code to make the search box include tags and meta
I would like the search in same box
if($_GET['s'] && !empty($_GET['s']))
{
$text = $_GET['s'];
}
if($_GET['type'] &...
0
votes
0
answers
169
views
search.php to search only the post title
I'm trying to rewrite my search.php to search only for the post titles because I have a ton of posts published to my site (around 400k), which slows down the search speed to about 20s per search.
<?...
0
votes
1
answer
659
views
Wordpress search WP_Query to cover multiple post types and their custom fields?
I am trying to make the WP default search a bit more intelligent, by having it use custom fields. It searches through my custom post types, but only for the usual fields (excerpt, title, content).
In ...
0
votes
1
answer
1k
views
WordPress Search Ajax + Isotope + InfiniteScroll
Custom Ajax Search filter for WordPress Search
I want to give a complete breakdown so you can easily analyse the problem and see that the issue is nowhere else, but the JavaScript. If you are not new ...