I used ACF for post type and tried to use CPT UI and both were not working this morning.
even though it may not have changed much from your code update.
It’s amazing that it’s working now, you really are an expert.
thanks for the response and the update
May God reward you