Skip Navigation

[Resolved] Populate SELECT with a names (loop) from CPT

This support ticket is created 4 years, 3 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 15 replies, has 3 voices.

Last updated by Christian Cox 4 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1467665

In admin i like to have the "same" select in the post type "Bokningar" so IF the customer like to change, we can just select another and update.
You can accomplish this with one post reference custom field applied to the Bokningar post type. Set the post reference field to reference the Resa post type. When creating or editing a Bokningar post on the front-end of the site, the client can choose between the different Resa posts in the post reference field. In wp-admin, an administrator can do the same thing by editing the Bokningar post.

One drawback to this approach is it does not support connecting multiple Resa posts to one Bokningar post. If your clients need to be able to link multiple Resas to one Bokningar, you should use a many-to-many post relationship between Resa and Bokningar instead.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.