The method by which users find information on your WordPress site

learn more… | top users | synonyms

1
vote
0answers
6 views

Taxonomy.php create a search filter with dropdown

I'm trying to create a custom taxonomy.php page where my users can refine search into that context. I've tried to create a kind of loop like: <?php if(!empty($_GET['ending'])) ...
0
votes
1answer
16 views

Search plugin form on “Add Plugin” page not working

Search plugin form not working. Steps to produce: admin-> plugin-> Add New. This is used to search plugin but this form is not submitting. Wordpress Version 4.1.1
3
votes
2answers
42 views

Add custom search results to main WP search

I know, this question was asked before several times, but I didn't find the answer suitable for my task. I asked the same question on StackOverflow already, but, I guess, this community is more ...
0
votes
0answers
16 views

Exclude Featured Image Attachments from Wordpress Search Results

I'd like my search.php page to show all attachments except featured images (because they appear as duplicates of the posts that use them). I have seen some examples that do this for a query, but ...
0
votes
0answers
4 views

How to make autogenerated template pages searchable in Wordpress

I have a client that has hundreds of autogenerated pages that are on the same page template, being on a template and not a standard Wordpress page there is nowhere for the Wordpress search to find ...
0
votes
0answers
18 views

Extending site search to include shortcode output

I wrote a shortcode that generates some HTML content for a page. I want my visitors to be able to find the page that this shortcode is on when they do a site-wide search. But when I perform a site ...
1
vote
0answers
20 views

Posts and Attachments with “Published” status in Search

I would like the search to show only published posts and attachments (the attachments are photographs taken directly from the media library). The trouble is, when I specify that the post_status must ...
1
vote
1answer
19 views

Wordpress Search Results for Multiple Post Types

I want to show both posts and attachments in the search results. Basically, I need something that says if the post has a thumbnail, show it. else show the attachment image (since they don't have ...
1
vote
1answer
20 views

Search pages that are a child of the current page

I'm developing my own Wordpress theme and I was wondering if it is possible to modify the search query in a way that it only return results that are child pages of the actual page. The reason I want ...
1
vote
1answer
20 views

Count the number of times the search form template gets included on a page

I've got a template that has a search form in several locations. Each search form is identical, containing a text input, two radio buttons, two labels associated to the radio buttons, and a submit ...
0
votes
1answer
20 views

Customizing Google's Search box in Wordpress [closed]

I hope I am posting in the right place. I apologize if not. I will start out I am not a coder. The code for my search box can from a tutorial for my theme (custimzr pro). Anyway, I have created a ...
5
votes
0answers
52 views

Development of a Wordpress Search Plugin - Best Practices

Searching for around two days to find an answer to my question, I finally registered for this StackExchange. :) My Question is not simple, so I need to start at the very beginning. But to give you an ...
0
votes
1answer
29 views

How to customize search result page title?

I would like to customize the page title of the search result page: from: <title>Search Results for “search string” – Page 2 – Sitename</title> to: <title>“search string” result ...
0
votes
0answers
11 views

Overriding search from plugin

I have some code that I would like to hook into search.php for all themes on a MultiSite network. It would be written to a plugin so when a search query is run given the conditions are met the code ...
0
votes
2answers
28 views

Echoing home_url() returns current url in searchform.php

In searchform.php my search form looks like this: <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> ...
0
votes
0answers
21 views

Query returning 1 post per page but saying it has 71 pages with almost 1500 results in total

Something is definitely not right here and I honestly cannot understand what it it. After I put this code on one of my custom made plugins, although it makes the search correctly (the result ...
0
votes
1answer
27 views

How to order users alphabetically by name? in plugin UPME

I have this code: <?php class UPME_List_Cards { public $upme_options; public function __construct() { global $upme; add_shortcode('upme_latest_members_list', ...
0
votes
2answers
16 views

WordPress custom taxonomies new/edit post autocomplete

I hope I can find some help or advice here regarding custom taxonomies auto-complete (maybe there is a ready-plugin but I am not aware of it). I have custom taxonomy which have around 500 items. So ...
0
votes
0answers
16 views

I want to add tag id to search query in wordpress

I have a custom search form which get result like this http://localhost/car/?post_type=cars&vehical=sports-car&manufacturer=truck&country=australia&state=new-yourk By using this ...
0
votes
1answer
30 views

Exclude posts with certain meta data from search results

I'm trying to exclude al posts with certain meta data from the search results but so far it's not working. Here's the code I'm using: function ZoekGeenLegeItems( $query ) { if( is_admin() || ...
0
votes
1answer
12 views

Auto search field without buttons, shows first result from search page

I need to create special search field in my wordpress site. I need to configure this field like after tap 6 characters field automatically start search and show first result from search page. This ...
0
votes
1answer
54 views

wp_query search not taking keywords with together for multiple words

I am using WP_Query to search results but this is not taking multiple words in AND operation. this is my code $searched_string = $_POST['search']; $the_query = new WP_Query( array( ...
1
vote
0answers
24 views

WP_User_Query search with multiple search queries

Is it possible to perform a WP_User_Query with multiple search queries? Something like: $args = array ( 'search' => '*example.com OR *abc.com', 'search_columns' => array( ...
0
votes
3answers
53 views

Custom search for custom post meta with pre_get_posts interferes with WP search

I'm making a custom post meta search with the pre_get_posts function in my Divi child theme functions.php file. The problem is that the final query gathers not only the results for my custom post ...
-1
votes
1answer
10 views

database search feature

I am looking to create a website that creates and searches the created database then displays the results on a custom page. I initially thought this would be a lot easier than it is proving to be. I ...
0
votes
3answers
52 views

How to support multiple search terms query within one process?

For multiple search terms; ?s=hello+world Wordpress work find "hello world" like the_title , the_content posts! And, if our post title Hello Anna wordpress does not get one results! I want to ...
2
votes
2answers
65 views

Filtering search results

I have pages, posts and woocommerce product categories and products in my website. I want to limit wordpress default search query so that it returns the posts, the pages, the product categories but ...
0
votes
1answer
23 views

Search by Attachment ID

I'm building a stock photo page for my company where we upload all photos our staff created so that it can be used later. It shows the ID of the image by post->ID so that users can see it, note it and ...
0
votes
0answers
19 views

Pagination for custom search query

We have written a completely custom search for WordPress as we had very extensive needs for this. The way it works is that when someone search, we execute our own query (custom mysql statement, ...
1
vote
0answers
57 views

Custom Post Type - Search Feature

So my Custom Post Type (CPT) has multiple taxonomies, the only problem I am having is creating a search form. On the frontend they have 5 options, these are: Area, Beds, Academic Year, Student, ...
0
votes
0answers
60 views

Hidden products included in search result count and pagination

I have this website I'm building: http://olivinelife.wpengine.com/ but I'm having an issue. If you use the search bar in the header to search for "Square" it brings back 5 results but says there are ...
0
votes
1answer
30 views

Adding arg to search results page

I want to show future posts in search results, categories, etc. This site says to use the following code: $args = array( 'post_status' => array('publish', 'future'), ); query_posts( $args ); ...
0
votes
0answers
23 views

Search Landing page

I'm trying to get my search to land on a different page besides my home page. ive tried using shortcodes on a separate page. It still doesn't redirect.
0
votes
0answers
17 views

Link to Advanced Search specific results

I have built a search using Advanced Custom Fields which is a lot like this: Advanced search form with filters for custom taxonomies and custom fields however all the results are being displayed on ...
0
votes
1answer
47 views

$query->set( 'post_type', 'post' ); not working

I am trying to exclude pages from my search result with this function: function posts_for_current_author($query) { global $user_level; if($query->is_admin && $user_level < 5) { ...
0
votes
0answers
42 views

Sort search results by meta_key value

I really need help with this. Below is a code of my template for search results page search.php and everything works just fine. Now, the website is about public events so it's very important that ...
0
votes
1answer
29 views

New theme HTML5 Support for Search in WordPress 4.4

I'm kind of new to creating my own themes with WordPress 4.x so I hope it's not too boring. In search.php I'm using this code: get_search_form () Also, I got this code in searchform.php <form ...
0
votes
2answers
61 views

Conditional posts in WP_query for search

I have a custom post type that im trying to limit results in search. The CPT is a deal/coupon, with a start and end date for each of the deals. What I'm trying to do is only show these posts in ...
0
votes
0answers
53 views

Search for Custom Post Types with ACF Fields

I've tried a lot of things but back to square one. My latest attempt didn't go so well. I'll try and explain very clearly what I am after. I ended up buying ...
0
votes
0answers
30 views

Search For Custom Post Type and Custom Fields

I have an events custom post type. I have custom fields such as start date, end date, venue etc. I'm building up a custom search specifically for this post type. So far I have this functions.php ...
0
votes
1answer
36 views

Unexpected esc_html and esc_attr behaviour

On my site's search results page I am outputting the search term as follows: <?php echo esc_html($_GET['s']); ?> For the search term "SEARCH-TERM" (including the quotes) I would expect this ...
0
votes
1answer
31 views

How can I prevent the Search Results Page from changing title?

I am trying to add the search feature to our site. I have the search feature located in the desired position on the page so I'm happy with that. My problem is that when the results are displayed, ...
0
votes
0answers
34 views

Custom filtering/search

I would need to do custom search for my archive page that would filter based on metakeys, freeword and couple select options. Probably my best option is to use the normal wordpress search ...
0
votes
2answers
28 views

Problem with site's search results “Read More” link?

I'm hoping someone will be able to help me with this issue. I noticed today that when I search certain serch terms in my Wordpress site's search box the link is messed up (shown in the image below ...
0
votes
0answers
47 views

Get search query on custom page /search/?s=phrase

I'm trying to move where search queries take place in WordPress. From example.com/?s=phrase to example.com/search/?s=phrase i've tried creating a custom page template with get_query_var as well as ...
0
votes
1answer
30 views

Worpress search for specific Post Type

I am doing a wordpress site and use a custom post type 'studentinfo'. I want to build a search form and search template that will retrieve only search result from the specific post type studentinfo. ...
0
votes
1answer
45 views

Custom search search does not work?

I have a WordPress website with WooCommerce plugin installed. There is one problem that i cannot figure out why do I do not got any search results shown up when I do product search? Website URL with ...
4
votes
2answers
87 views

How do I redirect /search/ to wordpress search template?

I have a typical Wordpress site, with a typical Search page template set up which uses the typical GET format <form id="searchform" action="http://example.com" method="get"> ...
0
votes
1answer
33 views

Post search not looking at post title since 4.4.2 upgrade

looks like searching for posts on my custom post type isn't checking in the title of the job anymore. Worked fine before the update but now only searches the post content. Any ideas? This is the ...
0
votes
0answers
14 views

Smart Search exclusive to Custom Posty Type

I am in the brainstorming stages of a project and wondering what is the best way to achieve the following. I will have a Custom Post Type of "Projects" which will contain multiple categories and some ...