Menu Breadcrumbs Shortcode

This feature requires BreadcrumbsPress Pro. View pricing and plans.

The Pro shortcode

renders the items of a WordPress navigation menu as a breadcrumb trail. It uses the selected menu’s items in their menu order; it does not automatically construct a current-page ancestor path. Create and arrange the menu first, then insert the shortcode in a shortcode-enabled area:

Replace 123 with the numeric ID of the navigation menu. If the menu cannot be found, no trail is produced. Menu items without a URL and items referring to inaccessible content are omitted.

Attributes

  • menu: numeric navigation menu ID.
  • rich_snippet: true or false; defaults to false for menu breadcrumbs.
  • list: ol or ul; defaults to the plugin’s list setting.
  • id and class: an HTML ID and CSS class for the rendered trail.

For example,

uses an unordered list. Check the result and links on the front end, and avoid duplicating existing breadcrumb output.

See Shortcode Support, the single and multi alternatives.

Rate this article
0
0
3

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0