0
votes

I have a website which uses a custom post type of Treatments, which we're using the CPT-onomies plugin to link as a taxonomy to other custom post types.

We have another post type, Practitioners, which I need to link related treatments too, this part is easy. But we also need to enable them to save prices per treatment and have a POA (price on application) option too.

At the momement this is rather awkwardly coded with serialised arrays, which makes long work of manipulating and reporting on the data.

What's the easiest approach to adding these two extra fields to the custom post type?

2
Just to clarify, what I need to do is assign one or more related treatments to each practitioner, then set pricing for each of these treatments, which is unique to that practitioner. - Waloob73
Treatments do not have prices assigned to them directly, only per practitioner. - Waloob73

2 Answers

0
votes

Have a look at Pods (http://pods.io/). This plugin enables an interface to define custom post types with a lot of options.

Including relationships, so you can add records of POA, and then assign these to the pod Practitioners for instance.

0
votes

I ended up resolving this by using ACF Pro, specifically repeater fields within a field group on the Practitioner page that allow them to select multiple Treatments and assign pricing to each one.