Skip Navigation

[Resolved] Join custom fields for different post types

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by tomasP 4 years, 9 months ago.

Author
Posts
#1591045

Hello,
I have a site with multiple custom post types, each with set of Custom Fields. Client now wants to merge these custom posts into one single CPT (no problem). But is it possible to merge these sets of post types' CFs into a new CF item (of course of the same type, e.g. to join values of several Date Fields into one, several Single Lines values into one, etc.).

Hope this "equation" helps:
----------------
Initial situation:
CPT A -> CF1 item -> Single line X value
CPT B -> CF2 item -> Single line Y value

Result var. A:
CPT B -> CF2 item -> Single line Y value = { CPT A -> CF1 item -> Single line X value } + { CPT B -> CF2 item -> Single line Y value }

Result var. B:
CPT C -> CF3 item -> Single line Z value = { CPT A -> CF1 item -> Single line X value } + { CPT B -> CF2 item -> Single line Y value }

Hope I made myself clear 🙂
Thanks in advance for any help.
Tom

#1591545

My issue is resolved now. Thank you!