Types plugin lets you easily create relationships between different post types and connect them using GUI controls. You can also connect multiple post types and build many-to-many post relationships.
When you ask for help or report issues, make sure to tell us what you have created so far and the structure that you want to achieve.
Viewing 15 topics - 781 through 795 (of 849 total)
Problem:
Custom field groups are displayed on all post edit screens and not just those where they are expected.
Solution:
When you create a Custom Field Group there is an option to specify which post types the field group should be assigned to, and which determines which post edit screens they appear on.
Problem: I would like to create a many-to-many relationship between Authors and Books.
Solution: In the current system, you must create a 3rd custom post type that is a child of both Authors and Books. Create a post in that 3rd custom post type and select the parent Author and parent Book to create the relationship. The beta plugins contain many improvements to this feature.
The issue here is that the customer wanted to know if it was possible to display the post reference field on the intermediary CPT.
Solution:
Unfortunately this is not yet possible in our Betas. So the reference field you wouldn't be able to display as yet. This functionality should be coming in a future update when we are Pushing the new relationships API
Problem: I would like to use CRED to allow my site Users to upload multiple images, and associate those images with CPTs. Some of those CPTs are child posts, some are parents, some are grandparents. What is the best way to associate the images with all levels of the CPT hierarchy?
Solution: It depends on your site's requirements. There are several things to consider.
- It is easier to create custom search filters using custom fields attached to the same post type shown in the View.
- However, it is not possible to use repeating fields in child posts in the current stable version of Types. The new beta M2M features will address some of this issue.
- Taxonomies can be used to relate the images to multiple CPTs, but they must be managed by your Users.
- Galleries and Carousels in Divi Builder have limited options for filtering the results, and it is not possible to use shortcodes as filters. So Divi cannot access custom fields effectively in the Gallery or Carousel module.
- Elementor ACF Gallery modules may or may not work with Types custom fields. Types custom fields are stored in the postmeta table using the previx "wpcf-".