• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

modifying search php in child theme to find Nextgen tags

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › modifying search php in child theme to find Nextgen tags

This topic is: not resolved

Tagged: genesis, NextGEN, search

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by brodiebrodie.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 14, 2016 at 11:12 am #185630
    brodiebrodie
    Participant

    Hello,
    I am new to WordPress and I am working with the Genesis sample theme.
    I am trying to sort out a Search function that searches tags from the Nextgen gallery.
    I have followed instructions from another site and created a plug in which I have activated.
    The last step is confusing me though;
    "Place this <?php if ( function_exists( 'ngg_images_results' ) ) ngg_images_results(); ?> in your themes "Search.php" file"
    I have copied the Genesis Search.php into the genesis-sample folder;
    I have tried pasting the above code, with the php tags, without the php tags, and many other permutations!
    It either has no effect or shuts the site down!
    Is there a special place to paste it? Must I place the copied Search.php in a different place?
    Any help would be most appreciated.

    Brodie

    June 9, 2016 at 6:39 pm #187293
    Cathy @ WPBarista
    Member

    Hi there.

    Try this in search.php

    
    <?php 
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'wpb_ngg_img_results' );
    function wpb_ngg_img_results() {
    
    if ( function_exists( 'ngg_images_results' ) ) ngg_images_results(); 
    }
    
    genesis();
    

    Visit WP Barista to download 52 Quick Edits You Can do Today to Get More Clicks / Views / Sales. I also do paid support (starting at $75) and fully custom Genesis Child Themes.
    June 10, 2016 at 11:58 am #187334
    brodiebrodie
    Participant

    Hi Cathy,

    Thank you for your response,

    I tried what you suggested but still no joy I am afraid.

    Brodie

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble