How can I add WPSSO breadcrumbs to my theme?

If your theme lacks a breadcrumb feature, or you wish to replace you theme's breadcrumb feature with WPSSO breadcrumbs, you can use the wpsso_bc_show_itemlist_html() function in your child theme header template (or any other template). The wpsso_bc_show_itemlist_html() function can be called in the loop, if you wish to add breadcrumbs to individual posts within an archive page.

Using WP Test data, the default wpsso_bc_show_itemlist_html() header output for the Tiled Gallery post might look like this:

The wpsso_bc_show_itemlist_html() function supports three arguments. The defaults are:

The $list_max argument allows you to add more than one line of breadcrumbs (if your post is a member of several categories, for example), the $link_sep argument allows you to change the default link separator, and $include_last allows you to include the current item in the breadcrumbs.

Using wpsso_bc_show_itemlist_html( $list_max = 3, $link_sep = ' | ', $include_last = true ) for the Tiled Gallery post might look like this:

When adding the wpsso_bc_show_itemlist_html() function to your theme template(s), do not forget to test for its existance, so you can deactivate the WPSSO BC add-on without causing a PHP fatal error.