Filter to add ancestors
-
Hello everyboday,
I have a question regarding the wp_seo_get_bc_ancestors filter.
I am trying to add a parent to my colleagues page. I’m trying it as follows:
if(is_post_type_archive('colleague')) { add_filter('wp_seo_get_bc_ancestors', 'add_about_us_page'); } function wbns_breadcrumbs() { if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb( '<div class="content-wrap clearfix breadcrumb">', '</div>' ); } } function add_about_us_page( $breadcrumb_array ) { $breadcrumb_array[] = 69; return $breadcrumb_array; }
But somehow it seems the entire filter is not doing anything. It doesn’t return anything. Anyone that can give me a kick in the right direction?
Thanks.
Regards,
Mark
- The topic ‘Filter to add ancestors’ is closed to new replies.