I use a custom post type and a custom taxonomy that is applied to this custom post type. This post type is published by receiving submissions from the front-end and the taxonomy ID value is determined at the time of form submission (the form is using another plugin called “Forminator” for this process).
However, when I checked this submitted post, the taxonomy was not applied to the post. When I go to edit the submitted post directly from the WP admin panel, the taxonomy checkbox panel is already checked with the same taxonomy as the taxonomy ID value received upon form submission, but it is not applied until I update the post (without any changes). In other words, if I update the post manually on the post editor page without any changes, everything works fine.
I found some forum threads about this and similar issues and tried disabling the Gutenberg editor, but it didn’t fix it.
Why is this happening and is there any way to fix it?