0
votes
0answers
12 views

search form to query textarea within plugin settings

I have a form, input text and search button, on the front-end of my site, that pops up when users select 'purchase', this all works great. <form action="[not sure what goes here]" > ...
0
votes
2answers
49 views

Change the search results header from plugin

Hi I'm writing a plugin to include custom search results. I'm not really allowed to edit any theme pages, but the search results page in twentyfourteen's search.php seem hardcoded to me: ...
0
votes
1answer
95 views

How to create a custom search form and handler?

I'm trying to build a search that, depending on what user chosen in admin, will either query one of several external api search methods with user input, save all the results in database and then ...
0
votes
1answer
349 views

Get custom wp_query search results to appear on search.php

I have a search.php page in my template which works fine when used with the native search widget, but I am making a search plugin which has a custom wp_query in it and I want those results to appear ...
0
votes
0answers
15 views

Facebook Open Graph like search on Wordpress [duplicate]

I'm building a site that mainly relies on Search and its results. I just wanted to know if we could integrate Facebook Open Graph kind of search suggestions based on categories and tags in Wordpress. ...
1
vote
1answer
30 views

What is the best way to mimic a search query within a plugin

I'm in the process of building a Wordpress plugin. I wish to mimic WP's default search functionality but in the form of a 'live search'. I have my JS setup to grab the query string (i.e what would be ...
6
votes
2answers
305 views

How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?

I've been playing around with code snippets which add meta data to admin searches. The best snippet I've found was written by Stefano on this question. However, it appears to have 1, annoying bug ...
0
votes
1answer
61 views

search content of pages and list in wp-admin

I am developing a plugin, and I want to display a page that lists every page on the site that is using a specific shortcode defined by my plugin. I assume that I need to manually search wp_posts, but ...
1
vote
1answer
135 views

Using ob_get_content to get_search_form puts into infinite loop

I am trying to change the look of my searchform. It basically needs to have two text fields. I want this to be in form of a plugin, which anyone can activate. SO obviously I do not have any control ...
1
vote
2answers
848 views

How to get posts by content?

I found the following codes to get post details. However, it is not possible to get the posts by content. Does any one has any ideas? get_posts() //// get post //// $args = array( 'numberposts' ...
1
vote
1answer
485 views

AJAX search posts and pages

Im trying to make a plugin where i need to create an AJAX search. Im using the method described in http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ to perform the ajax calls. So far ...
0
votes
1answer
691 views

How can I replace the search results displayed by Wordpress?

I'm working on a plug-in which will override the search results returned by Wordpress, with results from a custom XML feed. However, I'm not looking to do this on a separate page, but to replace the ...
1
vote
1answer
444 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
354 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" ...
2
votes
2answers
1k 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 ...