加载 Yoast SEO 主要分类选择器时出错
An error occurred loading the Yoast SEO primary taxonomy picker
我在编辑 post 页面时遇到这个错误,来自自定义 post 类型的管理端。此外,我在控制台 "TypeError: Cannot read property 'getPrimaryTaxonomyId' of undefined" 中收到一个错误,来自 WordPress 包含 js 文件夹的 react-dom.min.js 文件。那么你能帮我解决这个问题吗?或者建议我如何克服这个问题。
我有下面的解决方案 github link:
https://github.com/Yoast/wordpress-seo/issues/13032
我只想删除这个错误:"An error occurred loading the Yoast SEO primary taxonomy picker."
尝试在 functions.php 文件中添加以下行
add_filter( 'wpseo_primary_term_taxonomies', '__return_empty_array' );
我在编辑 post 页面时遇到这个错误,来自自定义 post 类型的管理端。此外,我在控制台 "TypeError: Cannot read property 'getPrimaryTaxonomyId' of undefined" 中收到一个错误,来自 WordPress 包含 js 文件夹的 react-dom.min.js 文件。那么你能帮我解决这个问题吗?或者建议我如何克服这个问题。
我有下面的解决方案 github link: https://github.com/Yoast/wordpress-seo/issues/13032
我只想删除这个错误:"An error occurred loading the Yoast SEO primary taxonomy picker."
尝试在 functions.php 文件中添加以下行
add_filter( 'wpseo_primary_term_taxonomies', '__return_empty_array' );