How to add a search function to NextGen gallery wordpress plugin

wp plugin nextgen gallery search

NextGen gallery is quite a nice plugin. But it lacks a function, a very obvious one… the possibility to search inside the pictures name, alternative text or description. Wouldn’t be nice if you can, with only one search query, display pictures from your gallery matching the searching terms, as well as you posts? I’m not a coder. Not at all. But it still works like a charm. If you know how to edit you theme, here are the modifications you have to go through: Add this code in your file search.php (inside your template folder), right after <h2 class=”pagetitle”>Search Results</h2>…

Continuer la lecture