[Resolved] Update taxonomy from within a Content Template
This thread is resolved. Here is a description of the problem and solution.
Problem: I would like to add a button to my Content Template that allows Users to modify the post's taxonomy terms.
Solution: You can create a Form that edits this post, and remove the input fields except for the taxonomy field. Hide the field with CSS or by making it a hidden field type, and show only the submit button. Use wp_set_object_terms to modify the post's terms.
I have a Content Template that is showing the details of a CPT (Single View).
There is a Custom Taxonomy associated with this CPT. I want to to provide a button or a link for the user to click it and that would change the Taxonomy value to a new value.
Can I create a shortcode or something to be called when the button/link is clicked to change the Taxonomy value?
Hello. Thank you for contacting the Toolset support.
Well - what if you create a Toolset form that holds the submit button and the taxonomy in a hidden format and when you submit the form - it should change/set the taxonomy as required.
If you can share problem URL where you added the button and send me access details I will try to play with it and guide you with a solution.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Please check the example given with above link to see how you can iterate through the return array. If you do not know, please share problem URL and access details with all required information.
I have set the next reply to private which means only you and I have access to it.