Questions tagged [search]

The method by which users find information on your WordPress site

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Different date time in results of search

In my search.php file i have a loop which succesfuly gives list of search query. global $wp_query; $total_results = $wp_query->posts; if ( $total_results ) : foreach ( $...
X9DESIGN's user avatar
  • 159
0 votes
0 answers
16 views

Product Search by ZIp Code Radius

I am building a marketplace that will allow vendors to subscribe and list products similar to an amazon or etsy. I want to implement a product search within the header that will allow customers to ...
Allie B's user avatar
0 votes
0 answers
10 views

Organizing media files (pdf) and searching based on the folders created

I am attempting to find a way to search through sorted PDF files inside the media section of WP. My goal is to be able to set up different search engines within my site that pull from specified ...
M. Dave's user avatar
0 votes
0 answers
5 views

URL syntax for searching post titles only (for RSS following)

I am following a Wordpress site via the native RSS feeds for search result queries. For example: https://site.wordpress.com/search/ticket/feed/rss2/ But this seems to be searching all posts' content ...
Crabgrass0899's user avatar
0 votes
1 answer
10 views

Google indexing pages that are not used

I am using wp site that was built on template downloaded from internet and uploaded demo content of theme. There are bunch of pages that I am not using. They can not be accessed from website but I see ...
Ivan Galić's user avatar
0 votes
2 answers
48 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 ...
Biranit Goren's user avatar
0 votes
0 answers
36 views

Block Spam Internal Site Search Indexed in Google and Redirect to Specific Page

Recently, we've been bombarded with thousands of spam search queries via our internal search, and some of them have been indexed by Google, despite our attempts to block them using the 'no-follow' ...
Javid's user avatar
  • 1
1 vote
1 answer
26 views

Search with indexing and linking to PDF content

I need to implement a search functionality that makes the content of a PDF file indexable and links directly to the selected content area of the search query. Is that even possible and what is the way ...
tinytree's user avatar
  • 111
0 votes
1 answer
19 views

Exclude in search post and include only 3 pages

I need that when a costumer search in my page, it includes only post but I need to included 3 important pages too... It is possible. For include only posts I have this code, but now How can include 3 ...
Laurapnunez's user avatar
0 votes
2 answers
83 views

How to Display Content from Search URLs on Permanent URLs in WordPress?

The search link for a WordPress website looks something like this: https://example.org/?s=seo or https://example.org/?s=blogging. For certain specific pages, I prefer to use permanent links. For ...
Ranuka's user avatar
  • 1,782
0 votes
0 answers
20 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
29 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
10 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
  • 765
0 votes
0 answers
66 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
29 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
28 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
21 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
0 answers
59 views

search issue in posts with ’ and ' WordPress search not considering variations of apostrophe in product post type

I have a WordPress website with a custom product post type. I'm experiencing an issue with the search functionality where it doesn't consider variations of the apostrophe character ('). For example, ...
Tejas Gajjar's user avatar
0 votes
1 answer
40 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
21 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
24 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
  • 13
0 votes
0 answers
7 views

How adding select imputs and chekboxes

I have a custom search form. Now I'm using it to filter and get the post ID. I'd like to add in the same form other search criteria and a separate submit button. In particular I need to filter by 3 ...
Andrea Sacconi's user avatar
0 votes
1 answer
30 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
18 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
26 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
0 answers
21 views

Wordpress search form problem: There is no space between text lines in search results

I use Astra and Elementor pro. I put in search form on page. It shows results but the text that comes up is scrambled, all in one row. I can´t seem to be able to change space between text lines when ...
San's user avatar
  • 1
0 votes
1 answer
16 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
85 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
0 votes
0 answers
83 views

Ivory Search error

When I open the search engine within the WordPress site, it shows There has been a critical error on this website. I am using Ivory Search plugin doesn't help when deactivating it.
user232436's user avatar
0 votes
0 answers
13 views

Search for meta_query does not return any result if combined with title

I'm trying to extend the wordpress search to include a custom cpt through the meta value associated using an ACF. All seems to works great, but the main problem's that I have to add this code to make ...
sfarzoso's user avatar
0 votes
0 answers
15 views

Members location sortable based on UK Postcode

I have just come back to creating WordPress sites after a few years away from it. I am trying to create a site that has members and currently trying a few membership plugins. The issue I have is that ...
Studio 1885's user avatar
0 votes
0 answers
22 views

how to create a multi selector dropdown search box by code?

I need to search categories, tags, custom fields and custom taxonomies. I have to create a search box similar to this: https://www.sacconicase.it/index.php taxonomy category+ sub category + sub-sub-...
Andrea Sacconi's user avatar
0 votes
2 answers
87 views

How to quickly search posts by title in Admin interface

I have a site with thousands of posts, and in the admin interface I simply want to be able to find and edit posts quickly based on their title. The default post search functionality matches on the ...
James's user avatar
  • 101
0 votes
1 answer
167 views

How to exclude html tags and class on search

I wanted my search to exclude html tags so that in the search results page it wont show html tags and class. I'm a beginner in wordpress development so i find it hard to understand some functions. ...
adriandneb's user avatar
0 votes
0 answers
134 views

Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields

I have a site, linked here, which was previously created in another cms, but is being moved to Wordpress. I am seeking some guidance on moving one of the more complex features over to Wordpress. ...
brodobaggins34's user avatar
0 votes
0 answers
22 views

search ALSO by POST-ID with a public front-end search box

I already have a code letting me start a search (also) by post ID, using the public front-end search box. I'd like to search ONLY in the content/id of post-type=post, now the search is not limited and ...
Andrea Sacconi's user avatar
0 votes
0 answers
10 views

Wp query search built out of 4 terms?

I'm wondering if the following is possible. I'm building a database of exams for different languages in different difficulty levels and there are different types as well. $level = 'b1' $language = '...
Pbalazs89's user avatar
  • 115
0 votes
1 answer
41 views

Wordpress REST API response - not returning results from custom taxonomy, only from title

I'm trying to set up a custom search for documents on the web page. The documents should be sortable based on their respective categories. If one category is selected, only the documents associated ...
Pbalazs89's user avatar
  • 115
0 votes
0 answers
120 views

How to set an exact search box in tablepress plug-in

I installed TablePress and set a table that contains 20 rows and 3 columns. I want to let people to search an unique digit number from a column and show the result as value of the same row or three ...
I'mALittleBus's user avatar
0 votes
1 answer
25 views

Search pagination rewrite to fix 404

I'm wondering if anyone can help me out here? Basically, I think I need to use add_rewrite_rule() to get pagination working in my search results, as I've gone beyond the default query due to a bunch ...
Jase Warner's user avatar
0 votes
0 answers
39 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 ...
Emma's user avatar
  • 11
0 votes
1 answer
29 views

Order of search results based off of a backend custom field and also in alpha order

I'm using WordPress as a searchable database of people, and I want to be able to sort search results by the person's last name. Initially, I figured I could sort the search results in just alpha, but ...
user231567's user avatar
0 votes
0 answers
64 views

Search results heading and counter not working - Oxygen Builder

this code was inserted using the Code Block component on Oxygen Builder and it should render a heading and the results counter. <h1 class="woo-pages-title">Search Results: "<?...
henrymendeez's user avatar
0 votes
0 answers
15 views

Group search results by post type, but having a unique heading for each section?

I've been struggling to make it work. This code works and returns search results separated for each post type, however I would like to have a unique heading for each section and style it, currently it ...
Juninho10's user avatar
0 votes
1 answer
73 views

Hook a search form anywhere on the site, using a custom plugin

I'm new and I apologize if I ask an already existing question. But I can't find the information I'm looking for. I need to know how a search form works in wordpress. I'm creating a custom theme and ...
f3l1x's user avatar
  • 1
0 votes
0 answers
25 views

Code in the excerpt of the search page

I am having problems with the search page. In this page I get the title and the excerpt of each page/article in the complete web. In the last page that the search engine places the following appears ...
jtax's user avatar
  • 3
0 votes
0 answers
16 views

Limit a search box by CPT + taxonomies, in only one page

I have a specific page, in which I want the search box to show only a CPT as result. But I also want to search, as input terms, for post title, and two custom taxonomies assigned to this CPT. I tried ...
Filipe's user avatar
  • 1
0 votes
1 answer
38 views

Display different sidebar based on search results from one category

I have a website with a plant index page. It has a custom sidebar using A-Z Listings and a search form that only returns results from the 'plantindex' category. When using the sidebar search form, say ...
Commandrea's user avatar
1 vote
2 answers
947 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&...
Taqi Vaheed's user avatar
1 vote
0 answers
134 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 ...
Charalambos's user avatar

1
2 3 4 5
37