[Plugin: NextGEN Gallery] Add Nextgen images to the Search Index
-
I would like to have my visitors also be able to “search” for images rather then having to scroll trough +100 pages with images.
I found a site which is trying me to explain how to do it, but im a bigger newbie then he claims to be.
https://www.ikiru.ch/blog/2008/how-to-add-a-search-function-for-nextgen-gallery-wordpress-plugin#comment-168579I CANNOT FIND MY SEARCH.PHP ??
Soooo perhaps someone can explain me step by step what to do. I alrdy have FileZilla/Client and do understand a lil bit of code.
I am using Atahualpa as a theme and I seem to only find a “searchform.php” but have no clue where to “add” the 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;
}
}}
Thanks on forehand
- The topic ‘[Plugin: NextGEN Gallery] Add Nextgen images to the Search Index’ is closed to new replies.