Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Where is the "the_search_query();" code found

Old Oct 31, 2011, 06:12 AM
1 posts · Oct 2011
I'm trying to add extra search functions for a plug-in, in most themes there is a search.php file that I edit to add the search function to include the plug-in's table in the database.
I want to add the following to the search query
PHP Code:
if(is_search()) {
$search $wp_query->get('s');
$keywords preg_replace('/\+/',' ',$search);
    if (
function_exists ('ngg_get_search_pictures')) {  // function from functions.php
$nggpictures ngg_get_search_pictures($keywords''); // put the number of pictures by row you want, if you don't want "4"

if ($nggpictures) {

Old Oct 31, 2011, 11:10 AM
juggledad's Avatar
23,684 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
see searchform.php
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Posts won't open in single page. Says &quot;Not Found&quot; chipcain Excerpts, Read more, Pagination 2 Aug 18, 2010 08:16 PM
"No Posts found" in Admin View and "Not Found" in Page View dextor Atahualpa 3 Wordpress theme 1 Sep 12, 2009 09:09 PM
[SOLVED] &quot;No Posts found&quot; in Admin View and &quot;Not Found&quot; in Page View dextor Plugins & Atahualpa 0 Sep 12, 2009 03:16 AM
how do you hide the sidebar on "Not Found" pages/posts w/ incorrect ID in the URL? jonasgrumby Sidebars & Widgets 0 Aug 26, 2009 01:13 PM
[SOLVED] Private Page Link Yields &quot;Not Found&quot; result Alexi Page & Category Menu Bars 2 Aug 8, 2009 08:37 PM

All times are GMT -6. The time now is 02:14 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.