All Questions
129
questions
-1
votes
2
answers
55
views
How to improve the performance when using a flat-file dataset and PHP for implementing advanced search function?
I have to add some advanced search function to a WordPress website, I can't use SQLite database because we are not allowed to install any driver on the system. I solved the issue using a CSV file that ...
0
votes
0
answers
22
views
Display posts based on the selected category when no subcategory is chosen
The following code displays posts based on subcategory. First dropdown is a custom taxonomy category, second dropdown narrows down the search to subcategories associated with selected category. My ...
0
votes
1
answer
16
views
WPML posts_joins on translated items
I found a way to filter the search query so it goes though the product_cat title and description to look for a term and then display all the connected product.
I am now looking for a way to make it ...
0
votes
1
answer
60
views
Including product categories (product_cat taxonomy) title and description in search query
WHAT I'M TRYING TO DO
I'm using woocommerce, but the question could work for WP categories also. When searching for a product, the search engine only looks for products info (title and description) ...
0
votes
0
answers
43
views
How can I change text on my SearchWP search results page, as this is not an editable page in Wordpress?
I just want to change the text "Search results for:" to something else e.g. "All results for:"
The class is .page-title. I can't find this anywhere and I cant edit the page html as ...
0
votes
0
answers
140
views
ajax select parent show child in another select and show posts in another select-ajax filter search
I'm on wordpress and I created a search filter shortcode which user can select province and show towns on another html select base on province and when user select town, in another html select it must ...
0
votes
1
answer
522
views
Woocommerce - Include custom user meta in order 'filter by registered customer' Ajax search
I am trying to include a users custom meta named 'sageaccountnumber' within the 'filter by registered customer' section of the WooCommerce orders list as shown below:
I already have the custom meta ...
0
votes
0
answers
35
views
Dynamically added text at bottom of article - non searchable by PHP code
I need to move certain articles on my website, all of them, to another unique category. I am using specific phrase which is at bottom of every article, but after code execution, only two articles are ...
0
votes
0
answers
184
views
Search results always returns "No results" no matter what
pre_get_posts hook that never works
I used the following code both in functions.php of my theme and in my custom plugin in the "after_theme_setup" hook (pre_get_post code only as it is alot ...
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
38
views
How to remove the message 'We could not find any results for your search' without changing template files and without adding posts/pages?
I take the question back with context.
The goal is not to add posts or pages so that the post is replaced by the title of the post/page.
The goal is not to modify the search.php file to remove this ...
0
votes
0
answers
259
views
Display WordPress search results based on the selected Sub-Category
I'm trying to create a search using dropdowns in WordPress.
I've got two dropdowns, 1 - Parent Category and 1 - Sub-category.
The Sub-category will show automatically based on the selected Parent ...
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 ...
0
votes
0
answers
28
views
Highlighting Text in Search Results
I was wondering if there was some way to highlight text in bold when you're searching for words. For example. Currently, my new website shows the extract but the first few words as well as Table of ...