I hope someone can help me.
- I have a custom post type called Site members with slug
site-members
- I have a custom field (which is a select field) called
aab-ew-select-visible
and in this field users can select either of the optionsdisplay
orhide
- The taxonomy slug is
test-all-members-cpt-tax
- The term slug is
test-all-members-ew-tax
Whenever anyone posts a new post to this custom post type, they can choose to either 'hide' or 'display' a section of their post on the website. If they choose to 'display' with the select field, then they should automatically be assigned to the taxonomy term 'test-all-members-ew-tax' mentioned above.
If anyone can help with the code for this, that would be massively appreciated.
Thank you for your time, Andrew