Skip to main content

Questions tagged [search]

The method by which users find information on your WordPress site

0 votes
0 answers
30 views

Search results not finding in paginated pages just in visible rows

I created this plugin to display a list of registered users with the Faciliator role. Displays the list in a table with name, country and avatar as titles. It works fine but the search box only ...
Artus's user avatar
  • 92
0 votes
2 answers
62 views

Exclude multiple custom post types from search

I'm trying to exclude a couple of custom post types from search results. The following works for one post type: // Exclude custom post types from search add_action('init', '...
Glasshalfpool's user avatar
0 votes
0 answers
11 views

Search Filter by mime type not working in pre_get_posts

I'm trying to create a search option for users to display only PDF attachment posts. The following works to display all attachments: function CustomSearchFilter($query) { if( (! is_admin() ) &&...
jchwebdev's user avatar
  • 775
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 ...
Alipvd's user avatar
  • 3
0 votes
1 answer
147 views

Display search results within the same page in wordpress

How can I display the search results on the same page where I have put search form?
Radheeka Chopda's user avatar
-1 votes
1 answer
38 views

How do I create a custom search function to only show contact information if they search for an exact unique identifier?

I’m hosting a conference in the future and will be collecting several hundred attendee’s names and email addresses when they register on my site. To help with networking and connecting them after the ...
Patmahoney123's user avatar
0 votes
0 answers
40 views

Search with synonym letters for arabic language

How can I have WordPress search different letters in Arabic? For example, أ-ا-إ are the same letters but in different formats. E.g. can I search WordPress for something like "world" > &...
AbuKotsh's user avatar
0 votes
1 answer
51 views

I want to create a search option for CPT using plugin. The search options should search for categories and tags

I want to create a search option for CPT using a plugin. Currently, the plugin displays data from the CPT posts using custom Gutenberg blocks. I am also able to display all post lists. I need to ...
Mangesh Yadav's user avatar
0 votes
1 answer
27 views

whole website redirected to another page

whole my website is redirected to another url and also i lost my rank in google search. after installing a plugin i think this problem is happened and after that i see unrelated result in google ...
sajad's user avatar
  • 101
1 vote
1 answer
31 views

How can I retain get_post_type() in between consecutive searches after a search returns no results?

I've been trying to find an answer to this, but I haven't found anyone asking the same question. I have multiple custom post types, with each having its own archive page and search form. As they all ...
ajs_app's user avatar
  • 15
0 votes
1 answer
49 views

Extending the search function to a specific meta field value in the admin posts table

I'd like to transfor the following code. This code was done to add a specific search for post ID numbers. Now I need a function to extend the search to a meta field called "function_name", ...
Andrea Sacconi's user avatar
0 votes
0 answers
22 views

Building a search box with taxonomies and custom fields

This is more or less the search form I have in mind by Html, now the problem is transforming all this stuff in php. After the number fields "distance from the sea" (min-max) I'd like to have ...
Andrea Sacconi's user avatar
0 votes
1 answer
44 views

search posts by POST ID

This function is no longer working and when I put the post ID in the default search box I get no results, why? add_filter('posts_where', 'posts_where'); function posts_where($where) { $s =...
Andrea Sacconi's user avatar
0 votes
1 answer
25 views

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?

I had added my phone number for customer support assistance, but I have changed the phone number from the website, now whenever I type my phone on google search, my website appears and the phone ...
KEVIN's user avatar
  • 1
0 votes
2 answers
404 views

Blocking spambots from Search form

I have a problem with spambots abusing my site's 'search' function but I suspect they aren't actually visiting my site and manually typing their crap into our search input. I've not found a great ...
Trisha's user avatar
  • 418

15 30 50 per page