• 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

Drop Down (Jump Box) for Pages

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 › Drop Down (Jump Box) for Pages

This topic is: resolved

Tagged: drop down, jump box

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 7 months ago by AnitaC.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 20, 2012 at 5:26 pm #987
    AnitaC
    Keymaster

    I have 37 pages and their links that I need to add to a drop down/jump box. Is there an easy way to do this or a plugin? They are pages on the site and it would be nice to showcase those the same way the Category Drop Down box works.


    Need help with customization or troubleshooting? Reach out to me.

    December 2, 2012 at 8:50 pm #2938
    yakkas
    Member

    Try this, where you include the ID's of the pages (or you can use exclude & page ID's)

    More info on wp_dropdown_pages

    <form name="form1" id="form1" action="" method="get">
    <?php $select = wp_dropdown_pages('echo=0&include=31,149,20');
    $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
    echo $select; ?>
    <noscript><input type="submit" name="submit" value="view" /></noscript>
    </form>


    Customize any Genesis Theme with this »
    Easily Build any WP site you want with this »

    December 2, 2012 at 8:54 pm #2940
    AnitaC
    Keymaster

    Thank you so much for responding. Do I place that in the theme or can I put it in a widget?

     


    Need help with customization or troubleshooting? Reach out to me.

    December 2, 2012 at 9:37 pm #2949
    yakkas
    Member

    You can put it in a widget, if you use a plugin to allow php in widgets.

    Otherwise you can put this in a genesis hook (in this example 'genesis_header_right')  by adding this code to functions.php

    add_action ('genesis_header_right' , 'pages_jump_menu');

    function pages_jump_menu() {
    echo '<form name="form1" id="form1" action="" method="get">';
    $select = wp_dropdown_pages('echo=0&include=31,149');
    $select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
    echo $select;
    echo '<noscript><input type="submit" name="submit" value="view" /></noscript>';
    echo '</form>';
    }

    Or if using the simple hooks plugin, then just omit 'add_action ('genesis_header_right' , 'pages_jump_menu');' and add to required hook placement


    Customize any Genesis Theme with this »
    Easily Build any WP site you want with this »

    December 2, 2012 at 9:38 pm #2952
    AnitaC
    Keymaster

    Oh, thank you. I really appreciate the assistance.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Drop Down (Jump Box) for Pages’ is closed to new 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