Good day!
I use some other plugin to generate JSON-LD Breadcrumblist for Google (Rank Math is not able to do that for now ). It was easy to connect this plugin with Yoast "Primary Category" to generate JSON-LD breadcrumbs just for post's primary category. Example below:
$term_list = wp_get_post_terms($post->ID, 'category', ['fields' => 'all']);
foreach($term_list as $term) {
if( get_post_meta($post->ID, '_yoast_wpseo_primary_category',true) == $term->term_id ) {
// this is a primary category
}
}
Questions:
1) Are there any solution for Rank Math primary category (Make Term Primary option) is it detectable from other plugins?
2) Has Rank Math Dev team any plans to implement JSON-LD Breadcrumblist generation?
I can explain why it is important: Some people don't want to have visible Breadcrumbs (in code or visually on page/post), but they do want to have nice looking snippet in Google with the breadcrumbs in the same time
It looks like new version of Yoast adds JSON-LD Breadcrumblist automatically if it's breadcrumbs option is checked.