├── README.md ├── calling-function.php └── functions.php /README.md: -------------------------------------------------------------------------------- 1 | # WP BreadCrumb Function 2 | Paste the `functions.php` code in your function file and call that function where you want to display breadcrumb. 3 | 4 | #### V 1.1 5 | 6 | This function updated and now supported to `custom taxonomy`, `custom post type` and `parent/child pages`. Also updated `archive (day, month, year) part` 7 | 8 | #### V 1.0 9 | 10 | This function is not yet supported to WooCommerce or any other specific plugin. It just based on default WordPress pages like `Single, Archive, Search, 404 or Page`. 11 | 12 | This function also check the parent and child category and display it like below. 13 | 14 | `Parent Category > Child Category > SubChild Category ...` 15 | -------------------------------------------------------------------------------- /calling-function.php: -------------------------------------------------------------------------------- 1 | '»', 18 | 'id' => 'ah-breadcrumb', 19 | 'classes' => 'ah-breadcrumb', 20 | 'home_title' => esc_html__( 'Home', '' ) 21 | ); 22 | 23 | $sep = '
  • '. esc_html( $defaults['seperator'] ) .'
  • '; 24 | 25 | // Start the breadcrumb with a link to your homepage 26 | echo ''; 233 | 234 | } 235 | --------------------------------------------------------------------------------