The Install New Updates module on the admin dashboard lists one-time platform installers that still have pending steps on the site. Clicking the green Check For Updates button refreshes the list — an installer only appears when the site actually has something left to install, and it disappears from the list once its steps are complete.
What Install Categories for Posts Does
This installer moves the site's post categories from the older form-field way of storing them to the current categories system. It adds a place to store category definitions on each post type, copies the existing category options into it, and converts the old category selector fields to the new one. It migrates the data; it does not delete the categories.
It runs three steps:
- Adds the categories column: a feature_categories column (varchar(999)) is added to the data_categories table (the site's post types) so each post type can store its category options in the new system.
- Migrates existing categories: for post types whose form has a field ending in _category, the field's saved options (field_options) are copied from the form_fields table into the new feature_categories column on data_categories.
- Updates the old selector fields: the old post_category and group_category form fields are converted to Custom fields that render the new category selector widget. The post_category field is set to use the Bootstrap Theme - Form - Post Categories Select Controller widget, and the group_category field is set to use the Bootstrap Theme - Form - Group Categories Select Controller widget.
Why It Appears
The installer runs three separate checks and appears if any one of them still needs work. It shows up when the data_categories table is missing the feature_categories column, when a post type still has a form field ending in _category whose options have not yet been migrated, or when the form_fields table still contains an old post_category or group_category field.
These are legacy conditions. Sites built before the current categories system will see this installer offered; newer sites already store categories the new way.
Why It Matters
The current categories system reads category options from the feature_categories column on each post type and displays the selector through the category widget. Until the categories are migrated and the old fields are converted, the post types are still on the older storage that newer category features are not built around. Running the installer brings the categories in line with the current system while preserving the existing category options.
How to Run It
- From the admin dashboard, find the Install New Updates module and click Check For Updates.
- If the site has pending steps, Install Categories for Posts appears in the list. Click Install.
- After it completes, click Check For Updates again. The entry disappears once all steps are done.
If it does not appear in the list, the categories are already on the current system, so there is nothing to do.
After Running
The post types now store their category options in the new feature_categories field, and the category selectors on the forms are rendered by the current category widget instead of the old fields. The existing category options are preserved through the migration. Click Check For Updates after installing and the entry disappears once all three checks pass.
