mihdan
2/2/2015 - 2:22 PM

category

function add_subcategories_to_permalink( $category, $categories, $post ) {
        return end( $categories );
}
add_filter( 'post_link_category', 'add_subcategories_to_permalink', 10, 3 );