onetone_get_breadcrumb

The Onetone onetone get breadcrumb function.

Description

onetone_get_breadcrumb( (array) $options = array() ); 

Parameters (1)

0. $options — Optional. (array) => array()
The options.

Usage

  1. if ( !function_exists( 'onetone_get_breadcrumb' ) ) { 
  2. require_once '/includes/theme-functions.php'; 
  3.  
  4. // The options. 
  5. $options = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_get_breadcrumb($options); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/theme-functions.php  
  1. function onetone_get_breadcrumb( $options = array()) { 
  2.  
  3. global $post, $wp_query ; 
  4. $postid = isset($post->ID)?$post->ID:""; 
  5.  
  6. $show_breadcrumb = ""; 
  7. if ( 'page' == get_option( 'show_on_front' ) && ( '' != get_option( 'page_for_posts' ) ) && $wp_query->get_queried_object_id() == get_option( 'page_for_posts' ) ) {  
  8. $postid = $wp_query->get_queried_object_id(); 
  9.  
  10. if(isset($postid) && is_numeric($postid)) { 
  11. $show_breadcrumb = get_post_meta( $postid, '_onetone_show_breadcrumb', true ); 
  12. if($show_breadcrumb == 'yes' || $show_breadcrumb=="") { 
  13.  
  14. onetone_breadcrumb_trail $options);  
  15.