Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Where is the "the_search_query();" code found (http://forum.bytesforall.com/showthread.php?t=15817)

Bradley Oct 31, 2011 05:12 AM

Where is the "the_search_query();" code found
 
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) {
            echo 
"<h2>Pictures</h2>";
            echo 
$nggpictures;    
        } 
    }



juggledad Oct 31, 2011 10:10 AM

see searchform.php


All times are GMT -6. The time now is 11:05 AM.

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