Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Where is the "the_search_query();" code found


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 31, 2011, 05:12 AM
Bradley
 
1 posts · Oct 2011
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;    
        } 
    }

  #2  
Old Oct 31, 2011, 10:10 AM
juggledad's Avatar
juggledad
 
21,970 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
see searchform.php
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

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 07:16 PM
"No Posts found" in Admin View and "Not Found" in Page View dextor Atahualpa 3 Wordpress theme 1 Sep 12, 2009 08: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 02: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 12:13 PM
[SOLVED] Private Page Link Yields &quot;Not Found&quot; result Alexi Page & Category Menu Bars 2 Aug 8, 2009 07:37 PM


All times are GMT -6. The time now is 10:39 PM.


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