Menu
For loop type menu
, here are the query parameters and fields.
Query parameters
menu
- Get menu by ID or title
Type: string
Fields
children
- Loop instance of menu children, if anydescription
- Descriptionid
- Menu item IDparent_id
- Parent menu item ID, if anypost
- Loop instance of item as postpost_id
- Post ID, if item is a posttarget
- Target, if item is a custom linktaxonomy
- Loop instance of item as taxonomytaxonomy_id
- Taxonomy ID, if item is a taxonomytitle
- Titletype
- Type: custom, post_type, taxonomytype_label
- Type label: "Custom Link", post type label, or taxonomy labelurl
- URL