The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. pfeatherstone
    Posted 5 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.


  2. pfeatherstone
    Posted 5 years ago #

    Any pointers on this would be much appreciated..

Topic Closed

This topic has been closed to new replies.

About this Topic