Skip to main content

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 any

  • description - Description

  • id - Menu item ID

  • parent_id - Parent menu item ID, if any

  • post - Loop instance of item as post

  • post_id - Post ID, if item is a post

  • target - Target, if item is a custom link

  • taxonomy - Loop instance of item as taxonomy

  • taxonomy_id - Taxonomy ID, if item is a taxonomy

  • title - Title

  • type - Type: custom, post_type, taxonomy

  • type_label - Type label: "Custom Link", post type label, or taxonomy label

  • url - URL