Questions tagged [search]

The method by which users find information on your WordPress site

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

Will multiple category descriptions effect my search engine optimization?

I plan to use the category descriptions as outputted content into my posts for site user searches within my site, but I want to know when I make the site live to search engines will that presence of ...
1
vote
1answer
153 views

How do I keep the page I'm on within the URL when running a search on a taxonomy?

I'm trying out a couple of plugins to aid in searching of taxonomy terms. One is called "Query Multiple Taxonomies" and the other is called "Drop-down-custom-taxonomy". What I'm wanting to keep the ...
2
votes
1answer
272 views

Global searchin multisite but only with one subsite

I have a multisite set up with currently 2 subsites. Is it possible to have a search box that searches the main site and just one subsite?
3
votes
3answers
1k views

Fulltext search in posts sorted by relevancy

I'm building a custom search page and what I need is to sort results by relevancy (eg. occurences of a keyword) Using MySQL docs I've built this query: SELECT ID FROM $wpdb->posts WHERE MATCH (...
-1
votes
2answers
5k views

How to strip/remove all blank spaces at the beginning/end of a search string

I use hack of Chris_O for highlighting the search terms. When a user enters the search keywords without any blank space in the beginning or at end of the search string it retrieves and highlights the ...
2
votes
3answers
6k views

Changing the search URL?

I want to change the search URL from example.com/search/keyword to example.com/result or topic/keyword.
1
vote
1answer
3k views

admin : search custom fields

One year ago @t31os answered a post with a code I can't access: http://wordpress.org/support/topic/search-custom-field-data His answer... I was feeling adventurous, so i wrote a simple plugin to do ...
8
votes
2answers
3k views

How can I create a taxonomy meta-box with search suggestions but no new terms input?

I was wondering how I could setup a taxonomy metabox on a post edit page that would be similar to the "tags" kind (with search field and automatic suggestions), but without the right to add a new term....
0
votes
1answer
1k views

How to return HTTP 404 when no search results found?

When user search and there is no results found wordpress still return 200 OK. I want to change it to 404 Not Found. Is it possible to return 404 Not Found header in search.php? If yes, how to do that?....
1
vote
1answer
242 views

Varying Search Result Pages

I have two different kinds of search results on my site and I'd like to change the look of the search result page entirely. I've played around with the search form a bit but I'm unsure how to force it ...
0
votes
1answer
296 views

redirected to the login screen when I do a blank search

why when I'm offline , when I click the search button and not put any words I am redirected to the login screen? I simply click in search button, don't put any word. If i'm normal user, don't logged ...
0
votes
2answers
78 views

search and add in wordpress content

I have a wordpress plugin that displays videos through a shortcode. My problem is it assigns the div's with ID's such as video-1-player, video-2-player, etc. I need to create a function that searches ...
1
vote
1answer
353 views

Differentiate between posts and pages in search results

How can one differentiate between posts and pages in search results? What I need to do is show a the_time div for posts but not show it for pages, as it's irrelevant. With a function? <?php if (!...
6
votes
2answers
16k views

Including custom fields in search?

I use custom fields for lots of my content on both Posts and Pages, so that half of the text will be in the main post body and the other half in a custom field. Unfortunately, when doing this only ...
1
vote
2answers
132 views

Can anyone offer any help with this function?

I am trying to write a function for my functions.php file. I has to do the following; loop through search results and check the template if the template is 'landing.php' add it to ad array use the id'...
0
votes
1answer
81 views

Replacement search plugin that reads widgets or catalogs entire page?

I remember seeing a search plugin that creates a database log of your pages it use for search. Does anyone know of the plugin? And would this be a good way to make the Widget Text searchable? If not ...
-1
votes
1answer
3k views

Why does 'exclude_from_search' exclude a custom post type from WP_Query?

In WP 3.1, it appears that setting 'exclude_from_search' = TRUE for a custom post type excludes the post type not just from searches on the front-end, but also from any post query using 'post_type' = '...
0
votes
2answers
3k views

How do I override the search template in a plugin?

How do I override the search template i.e. used inside a theme with a custom search page inside a plugin? Please point our any relevant action/filter hooks which can be used to do this. Any help is ...
3
votes
1answer
163 views

How would implement StackExchange 'Questions with similar titles' for the FAQ on my wordpress site

I want to have a FAQ page on my site which has a search box. As the user types in their question, a field below the search box is populated with FAQ answers with similar titles. The exact same ...
1
vote
2answers
203 views

Get search term not on searh results page?

I would like to get the last term that was searched, but when not in the search.php page. For that, I know, I could use get_search_query() function, but if user clicks on a post for example, so he is ...
1
vote
1answer
1k views

What causes an Unexpected HTTP Error within install plugins?

Within "install plugins" I'm receiving an error stating "An Unexpected HTTP Error occurred during the API request." When I do a plugin search it throws me back to my site's 404 page. Any idea what ...
1
vote
1answer
1k views

modify wordpress default search

I would like to modify WordPress default search. I have 2 questions: which template file to modify, and how can I include posts ids that I want to include in search? I need to search from specific ...
3
votes
1answer
16k views

How to search for categories and/or tags?

I have a search function on my blog. If I enter a value, say 'fruits' in the search box and it doesn't match in any of the posts but it is the name of a category in the blog then I want the posts that ...
0
votes
1answer
2k views

What would causes search to return incorrect results?

Recently our site began no longer returning correct search results. When searching it returns one result that's unrelated to the inquiry. I've turned off all plugins and reverted back to a day when I ...
2
votes
2answers
339 views

Display title for search engine visitors

I read somewhere*) that there's some q part inside the wp_query object, that identifies search engine visitors and shows the keywords they searched for. I'm currently developing local, so i can't ...
3
votes
1answer
583 views

Displaying search results in the widget itself?

I am new to wordpress, so if this question was already answered I apologize in advance. I have a search form in wordpress which looks like this: <form action="wordpress/action.php" id="...
15
votes
3answers
16k views

How to highlight search terms without plugin

How can I get the search terms highlighted without plugin?
0
votes
1answer
772 views

what code to add to search.php

what line of code can i add to my search page in order to display the results up to 3-5 pages per "search
0
votes
1answer
1k views

BuddyPress - Search members by name and also by username

Im trying to find a way to set the members search by name and also by username. Now it seems to search only by name. Thanks in advance.
10
votes
1answer
5k views

Pretty permalinks for search results with extra query var

I'd like to know how I can rewrite a search URL that also contains an extra query var into a pretty permalink using wp_redirect and the template_redirect hook. I have taken the code from the Nice ...
1
vote
2answers
2k views

WP-PageNavi plugin doesn't work with multiple pages of search results

I'm using Dilectio theme and WP-PageNavi plugin. The plugin creates links to multiple pages perfectly on every page except for the search results page. For example, when I search for the keyword "...
3
votes
1answer
781 views

Sort posts by number of matched terms

I have form where I list all terms associated with posts as check boxes, user should pick few of them, hit search and get all posts that match all chosen terms. It works great when there are posts ...
3
votes
3answers
7k views

Seperating Custom Post Search Results

I have a site that has a few custom post types. When a customer searches it shows a combination of all the different posts. I'd like to segment the two on the same page resulting in something that ...
0
votes
1answer
502 views

Load search results into a div

Is there anyway to load the search results into a div in wordpress? I am currently searching a custom post type only and am searching from a small box that pops up in a fancybox. is there anyway to ...
2
votes
1answer
5k views

Search form with Category and Sub Category

How to create WP Search Form with Category and Sub category for illustration a search form (for search title Book=title post) With condition By Keyword, By All Category and Sub Category selected ...
5
votes
2answers
2k views

How to make dynamically-generated content searchable in WordPress?

I'm writing a plugin for WordPress that dynamically generates content from a Google Documents Spreadsheet. Specifically, the plugin provides a shortcode that generates a good-looking staff list. It ...
0
votes
2answers
970 views

Intelligent Search Filtering

I need some help with a search plugin: WP Custom Fields Search. I have three drop down menus: 1. City 2. Suburb 3. Cuisine What I need is so that when you select a City, it automatically moves the 2. ...
0
votes
1answer
496 views

Problem with WP_Query loop and search term

I have a custom query to display random posts in my sidebar like this: $newQuery = array( 'post__in' => get_option('sticky_posts'), 'post_type' => 'ad_listing', 'posts_per_page' ...
4
votes
1answer
5k views

Search multiple custom fields by using meta_query

I'm trying to create a search results listing for a custom post type and the problem I'm running in to is with the way the 'meta_query' parameter is stringing the passed values together. It appears ...
1
vote
2answers
1k views

get_the_category and echo out link to child-most/deepest category

I have this code which is located on the search.php page and retrieves all the categories for each post and echo's out a link to the first category: $category = get_the_category(); //print_r($...
2
votes
3answers
2k views

How to improve WordPress search

I heard many times, that WordpPess's search doesn't work good. Are there any other search engines available for wordpress? I know about sphynx, seems its a good one, but available plugins are out of ...
2
votes
1answer
2k views

Search for tags

Is it possible, to search just for tags? Not any other taxonomies or post types, just tag titles.
6
votes
3answers
9k views

Searching multiple custom post types and pages

I'm using bainternet's method for searching custom post_types and it works great. However, I've recently been requested to return more than one "specific" post type and perhaps individual pages for a ...
-1
votes
1answer
840 views

Search options/filters

I'm trying to add some checkbox options to a sidebar search box, similar to this, where the user has the option to choose whether to search All Words, Some Word, or the Entire phrase. I did find this ...
5
votes
4answers
24k views

How to make search engine index PDF files? [closed]

I'm looking for a plugin or a idea so that my WP 3.1 search engine can index PDF files. Has anyone be through that need too ? Thanks !
1
vote
1answer
872 views

Filter custom posts using auto populated dropdown selectors

I've created a custom post type named agent. I have a page that lists all agents. When I add an agent I have a whole series of custom meta boxes that can be filled out, region, specialty, language......
27
votes
1answer
19k views

how to limit search to post titles?

Is there a way to limit search to post titles? I know I can modify query.php core file but there must be a way to do it with hooks right? Thanks in advance!
34
votes
7answers
24k views

Extending the search context in the admin list post screen

I have created a custom post type and have attached some custom fields to it. Now I would like to the search that authors can perform on the custom post list screen (in the admin backend) to also be ...
0
votes
1answer
2k views

Custom Permalinks Break Search Pagination

So I'm having a weird issue that I've never seen. I have a search.php set up like this: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($query_string . '&paged=' . $...
0
votes
2answers
572 views

Custom post_type search pages

So I have a section on my site that specifically searches a custom post type for YouTube videos. I'm absolutely able to search the custom type. However, I'm unsure how to create a search page that has ...