• 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

Custom search for WP job manager

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 › General Discussion › Custom search for WP job manager

This topic is: not a support question

Tagged: wp_job_manager

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 11 months ago by ftleow.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 5, 2019 at 5:25 am #492134
    ftleow
    Participant

    Hi guys,

    I've been clueless after trying to get this work:
    this tutorial

    Can someone point me to the right direction of accomplishing this?

    I tried using the "add_action" in functions.php file within the function is that I merely output the custom form in php format inside the genesis_loop, the search isn't working, no error though, is just a dummy form, it isn't passing any values for search_location and search_keywords.

    Have read up on custom template file, still clueless what are the steps for this particular case. Will there be any array involved? What should be in the custom template file? How exactly does that apply for this case? If anyone could just put it in sequence of statements - will be very helpful.

    Oh, yeah, I'm using genesis framework.

    Any help will be appreciated.

    Thanks!

    July 5, 2019 at 6:03 am #492135
    Brad Dalton
    Participant

    See the page_landing.php file in your theme which you can copy and rename.


    Tutorials for StudioPress Themes.

    July 5, 2019 at 9:49 am #492139
    Brad Dalton
    Participant

    Something like this will get you started but you'll need to modify bit to work with your 3rd party plugin:

    <?php
    
    /**
     * Template Name: Job Search
     * @author  Brad Dalton  
     */
    
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    add_action( 'genesis_loop', 'wp_job_manager_listings' );
    function wp_job_manager_listings() {
    
    ?>
    
    <form method="GET" action="http://local.local/jobs/">
      <p>
        <label for="keywords">Keywords</label>
        <input type="text" id="search_keywords" name="search_keywords" />
      </p>
      <p>
        <label for="keywords">Location</label>
        <input type="text" id="search_location" name="search_location" />
      </p>
      <p>
      	<label for="search_category">Category</label>
      	<select id="search_category" name="search_category">
      		<?php foreach ( get_job_listing_categories() as $cat ) : ?>
      			<option value="<?php echo esc_attr( $cat->term_id ); ?>"><?php echo esc_html( $cat->name ); ?></option>
      		<?php endforeach; ?>
      	</select>
      </p>
      <p>
        <input type="submit" value="Search" />
      </p>
    </form>
    
    <?php
    
    }
    
    
    genesis();
    

    Tutorials for StudioPress Themes.

    July 6, 2019 at 11:19 am #492165
    ftleow
    Participant

    Thanks, Brad, this looks good to me.

    I've also seen and learned a lot from your website's tutorials.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 2025 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