I have created a taxonomy and some custom term fields associated.
I would like to manage these fields in the front end thanks to a Cred, but I did not see any way to do this.
Hi Shane,
Thanks for the info.
To me, this is a pity not to be able to do this. I was not aware of this and based 2 of my new sites on taxonomies and now, I'm obliged to move to another solution (i mean post relationship ?).
Wouldn't it be possible to find a way to create / update terms thanks to Cred + cred save data?
It is possible to create / update the terms using a Hook but its not efficient. Each time you are using the form to create a new term, you will essentially be creating a new post when creating a term.
Also to update a term you will need to edit a post. This is not efficient .
Thanks for the info.
This was my "fear" I need to restart ans replace taxonomies with post relationship.
Now, before starting, I would like to better understand the way it is working.
Here is my need :
I have WC product and have created a specific postype for localisation.
I have also a Cred that helps to modify a product in the front end.
What I need is to add in this Cred, the ability to chose a specific localisation, and if possible, thanks to a select field.
So, for the moment, I have created the form post relationship (many to many) between product and localisation, but I'm lost on how to insert in a Cred form the ability to chose a localisation when editing a product.
Since this is a many to many relationship you won't be able to set the post relationship from the edit or create post form.
You will need to create a relationship form. This is because the many to many relationship is structured differently from the one to many relationship.
I'm assuming is the issue is that your products can have many localisations.
I'm a bit désappointement. I was thinking it should be easier with the new Toolset relationship !
So, if I'm right, the only way to get what I need is what we can call "the old way", which is to create a Views to list the different posts of location and then, insert is a the option of a generic field?
Let me know if you have any other idea.
Regards
Pat
That is correct. We are improving on this and plans are being put in place to actually replicate the relationship creation on the frontend like how we have it on the backend.
With the location will it just be a name ? I saw that you mentioned custom fields but what is the purpose of having the custom fields. Is the location just being used to Tag the product ?
The custom fields are necessary in order to add the address of the location. I'm also using another taxonomy for defining the people in charge of the event. Here, I 'm using fields for description and a photo of the person.
If I was not using custom fields, then taxonomy could have been sufficient as we can add additional items in the front end, but here, this is not the case and I need to be able to recover the needed custom fields, even if only one is necessary !
Yes you will definitely need to do this with a post relationship then. I was trying to see if the taxonomies would work but based on what you just explained the post relationship would be the best option.
So, I just need to define that product is a parent of location (or the other way ?) and create a Views that lists the different location to be inserted inside the option of a generic field. That mean this generic field should be a numerical field and we will save the ID of the location in it. As it is possible that several locations apply to the same product, how do I need to manage this (is it possible to define a generic field having several values like we can do for custom fields ?).
In parallel, I need to prepare the management of the locations (list of the location + a button to modify it and the ability to create a brand new location.
You can add a link to the relationship form which would have the product already filled in and then all you need to do is to connect that product to the existing location.
I mean you can also list out all the products in the view and then add the said link to the view as well .
Just discover that the relationship management is no more what I was expecting. I have seen the announcement but never used it since then.
What do I need to take into account for my specific case. After having created the form relationship between product and location and the Views to list all locations, what kind of generic field do I need and how to populate it inside the Cred form that modify a product?
Last point concern the way to accept several values for this field. How can I do this?