Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred loading the Yoast SEO primary taxonomy picker

I am facing this error in edit post page from custom post type in admin side. Also i am getting one error in console "TypeError: Cannot read property 'getPrimaryTaxonomyId' of undefined" from react-dom.min.js file from WordPress include js folder. So can you please help me to resolve this issue or suggest me way that how can i overcome from this problem.

I have solution from below github link: https://github.com/Yoast/wordpress-seo/issues/13032

I want just remove this error: "An error occurred loading the Yoast SEO primary taxonomy picker."

like image 744
safik Avatar asked Dec 01 '25 02:12

safik


1 Answers

Try to add below line in functions.php file

add_filter( 'wpseo_primary_term_taxonomies', '__return_empty_array' );
like image 155
Gaurang Sondagar Avatar answered Dec 05 '25 01:12

Gaurang Sondagar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!