0

I am using the woo_breadcrumbs function and need to insert the name of the curent custom post type. Currently it is showing the home page + category, Home -> Category . Is there a simple way to call the name of the current Custom-Post-Type and insert it between home and category? The function inside the admin-fuction.php file in functions folder.

Thanks!!

4

1 回答 1

0

到目前为止,我发现了以下内容,希望对您有所帮助。这是针对单个分类法编写的:

add_filter( 'woo_breadcrumbs_args', 'woo_video_filter_breadcrumbs_args', 10 );

if ( ! function_exists( 'woo_video_filter_breadcrumbs_args' ) ) {
    function woo_video_filter_breadcrumbs_args( $args ) {
        $args['singular_video_taxonomy'] = 'videos';
        return $args;
    }
}
于 2012-12-14T17:42:52.487 回答