You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit a post and select the primary category and save
Refresh and check the primary category was saved.
Repeat the test with classic editor.
Inspect the the page and look for an input with the id yoast_wpseo_primary_category. Manually change it's value to text, zero, or a negative number and save.
Refresh the page and inspect the page.
Primary category
Saved in post meta data as:
_yoast_wpseo_primary_{taxonomy-name}
primary_{taxonomy_name}
values to ScriptData undermetaData
property (class-post-metabox-formator.php)MetaboxFieldSync
onChange inpackages/js/src/components/PrimaryTaxonomyPicker.js
packages/js/src/initializers/primary-category.js
Reducer
Initializer
Update event listener
Components
Initial state
Register metadata
Tests
Test instuctions
Inspect the the page and look for an input with the id
yoast_wpseo_primary_category
. Manually change it's value to text, zero, or a negative number and save.Refresh the page and inspect the page.
Without the metabox
class-metabox.php
:// add_action( 'add_meta_boxes', [ $this, 'add_meta_box' ] );
The text was updated successfully, but these errors were encountered: