WordPress.org

Ready to get started?Download WordPress

Forums

query_posts by custom post type and taxonomy in a dropdown (2 posts)

  1. pfeatherstone
    Member
    Posted 3 years ago #

    Sorry if this is in the wrong section - first post on here!

    I have been trying for some time to figure out how to query a custom post type for a specific custom taxonomy via a drop down menu (mobile review, mobile make/model).

    I have tried to implement various solutions, so far I've managed to display my custom taxonomy type in a drop down but the query displays all types of posts for the selected taxonomy. There is also no hierarchy shown in the drop down (i.e. the indentation you see in wp_dropdown), taxonomy types are simply listed with no differentiation between parents and child taxonomy (e.g. mobile make: HTC, mobile type: Desire).

    Achieving the above using wp-query and outputting as a list seems to work fine but I seem to need a function to build the drop down.

    Any help would be much appreciated.

    Thanks.
    Paul

  2. pfeatherstone
    Member
    Posted 3 years ago #

    Any pointers on this would be much appreciated..

Topic Closed

This topic has been closed to new replies.

About this Topic