Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bpmag_show_gallery_search(){
- ?>
- <div>
- <h2><?php _e("Gallery Search","bpmag");?></h2>
- <?php locate_template( array('gallery/gallery-loop.php' ), true ) ; ?>
- <a href="<?php echo bp_get_root_domain().'/'.BP_GALLERY_SLUG.'/?s='.$_REQUEST['search-terms']?>" ><?php _e("View All matched Galleries","bpmag");?></a>
- </div>
- <?php
- //endif;
- }
- //Hook gallery results to search page
- add_action("advance-search","bpmag_show_gallery_search",12);
Add Comment
Please, Sign In to add comment