WordPress.org

Ready to get started?Download WordPress

Forums

Dropdown list of pages withn a specific category? (6 posts)

  1. Kahil
    Member
    Posted 2 years ago #

    Ok, maybe I'm just using the wrong search terms...but I can't seem to find a simple way of generating a dropdown list of pages that is limited to just a single category.

    The codex shows you how to get a dropdown with all your pages, but that's it.

    Any help would be greatly appreciated.

    Thank you!

  2. vtxyzzy
    Member
    Posted 2 years ago #

    One way would be to use a query to get the IDs of all posts in the category and then use wp_list_pages with the 'include' parameter for those IDs.

  3. Kahil
    Member
    Posted 2 years ago #

    thanks!....but you forgot the all important "how"... :)

  4. vtxyzzy
    Member
    Posted 2 years ago #

    Sorry, I was thrown off by the 'list of pages' in your original post.

    I am guessing what you want is a list of Posts in a given category. There are several plugins that will do this for you. For example, Utech List Post Titles, WP List Posts Shortcode, and List category posts.

  5. Kahil
    Member
    Posted 2 years ago #

    Ok...

    well I can get what I want using the page dropdown code from the codex...having only show the pages that are a child of specific other page...but... I want to make it so the form doesn't have a submit button. I would like it to go to that page upon selection. Using the shown method for doing this with the category dropdown doesn't work.

    any ideas?

  6. vtxyzzy
    Member
    Posted 2 years ago #

    Sorry, no.

Topic Closed

This topic has been closed to new replies.

About this Topic