Change post template the proper way
I think it’s generally better to include the CMB2 plugin. As far as your question, there are a lot of ways to go about this, but I think your way is a solid one. I would make a couple changes. I’d update your option values to be the name of your template-parts: ‘options’ => array( … Read more