I am trying to:
set default values for a post's taxonomy according to fields in it's author's user profile.
I.e.:
1. User sets the field Country in his profile to "France".
2. Any post the user creates through a CRED form has the tag "France"
My goal in the end is to have parametric filters and views that show posts depending one or more categories.
Some of the categories are hierarchical like Country (i.e. Asia->Thailand; Asia->India; Africa->Egypt) or field of employment (Marketing->online marketing; Marketing->PR;) and I should be able to filter by either the parent term or the child term (i.e. filter by "Asia" or filter by "Thailand")
I don't want to use nested views since I expect those to perform worse and to I expect those to prevent me from nesting further. Nested views would work by first filtering by authors with a certain category and then by showing all of the posts of those authors in a view.
I don't want users to manually set those categories for each post because that would make mistakes very likely and would mean quiet a hassle for them.
---
Generic fields work for me to insert information from user profile fields into post fields but not for inserting them into taxonomy.
[cred_generic_field field='country' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"default":"[types usermeta="usercountry" user_is_author="true"][/types]"
}
[/cred_generic_field]
I have three questions:
1. What is the smartest way to reach my goal? (set default values for a post's taxonomy according to fields in it's author's user profile)
2. Is it better to use taxonomy or just post fields to reach my goal?
3. How can I set post taxonomies by using user profile field contents in CRED (hidden)?
4. If possible how to map multiple entries to multiple taxonomy entries (i.e countries germany, spain, italy in user profile to germany, spain, italy in post taxonomy)
Thank you!