Auto-assign custom taxonomy?
Author | Posts |
---|---|
July 1, 2013 at 8:43 am 5444 | |
Hi Tareq, I plan to have different groups of users creating posts with wpuf, and would like to be able to organise posts by groups. I can create a new form for each group and use the custom field _wpuf_form_id to query/filter posts, however it would be great if I could set all posts created by a form to a custom taxonomy. Is there a way to achieve this? Perhaps a hidden field with default value? Understand if this request is beyond normal support as it's not a current feature. Loving the plugin, will write up a testimonial once the site is up and happy to give you the site URL. Cheers, Jamie | |
July 1, 2013 at 4:05 pm 5468 | |
May be you should check this reply. If it was a category taxonomy, the post settings has this option already. As you are trying with custom taxonomy, applying the action hook is the solution right now. | |
July 4, 2013 at 8:04 am 5569 | |
Thanks Tareq, worked perfectly! | |
July 6, 2013 at 1:58 pm 5631 | |
Hi Tareq, Thanks again, Although I have realised that it would be better if I could auto assign a tax based on the user (so I’m not creating a new forms for each user) so I tried the following but it doesn’t work (works when I substitute $user_id for $form_id)
Again, realise this is beyond the normal level of support, so understand if you don’t reply, but if it’s a quick fix then any advice would be appreciated. Thanks! | |
July 6, 2013 at 5:22 pm 5634 | |
The second parameter in the function is |