There many ways to solve this kind or problem, and without more details about what it is you are trying to achieve, it is difficult to give you a precise answer. Keep in mind also that ACF is made to ease the creation and usage of custom posts/fields and not really a tool to build relationships between data constructs. You really ought to code your own data constructs in order to have full control over their relationships.
Here is a general approach that you can use,
- create a custom post type called
calender_event
for example. - create another custom post type called
event_session
. - create a meta-field for the first post type called
calendar_event_sessions
. - Each time you create a a new post
event_session
assign it to an existingcalender_event
and store its post ID as an array into the fieldcalendar_event_sessions
. This also means that when a post is deleted you need to remove it from anycalender_event
.
Related Posts:
- How to Add Custom Fields to a Custom Post Type?
- Do_Shortcode not working for Embed
- Display custom post type and custom fields within a Bootstrap Carousel
- how to filter by last name for custom post
- Search that will look in custom field, post title and post content
- clients list using wordpress
- Custom Taxonomy Template Post List with Sort Order
- Display Custom Post Type Fields
- How to do a custom bookmarks post type?
- How do I add media to a custom post type?
- Using a Custom Field instead of original title field but only for Custom Post Type
- Add New Post (Custom Post Type) Deletes 1 Post’s Custom Meta Data
- How to use custom field to search for wordpress post type?
- WP Query group/order by category name
- Automatically Insert Custom Field on Custom Post Type Publish
- How to initialize PODS?
- Custom search with Custom Fields in WP REST API?
- Adding a Gutenberg-like custom field on a custom post type
- Automatically populate a hierarchical taxonomy from a custom field
- WordPress posts with multiple fields
- How to dynamically attach pictures to a carousel
- How to add a Custom Meta Box for more than one Post Type?
- List of Posts in a Custom Field
- Confusion regarding Nonce & using it in Custom Columns for Saving Checkbox Value to Post Meta
- WordPress custom loop filter by meta_key and value with serialize data
- CPT Group by Date metabox Value
- Replace text in post from cvs
- Admin search ACF relationship
- Give a permalink to Custom Post Types without title
- How do I create custom fields for multiple post types?
- Cannot add custom field to “orderby” parameter in Rest API
- Trash / Draft a WordPress custom post after custom date field expires
- Posting to a Custom Post Type from front end – user generated content
- Custom Meta Field – Remove comma from string with str_replace
- Tracking changes in admin-page so user gets warning when leaving the page
- Filter custom post types by a field value
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- First custom field value (out of several) displayed twice after query
- Multiple Frontend Filters Using Advanced Custom Fields
- Is it possible to activate customfield ‘text description’ upon activating the customfield ‘checkbox’?
- Custom Field values not Showing in Edit Page of Custom Post Type
- Add a custom meta box for client to order CPT posts how they want
- create custom meta box with default value
- Add custom attributes to a post
- Custom Taxonomy Search result page
- Get post content from another section in custom single page
- Modify Posts from Custom_Post_Type within the plugin
- How to convert custom fields to content
- Increasing the default number of posts in custom post types
- Group by custom field value (start and end times)
- Variable Products as custom post types
- How to call a post’s metadata in shortcode.php?
- Ideas to connect external database table to wordpress posts as custom field source
- updating one custom meta field only
- Add a class to post_class if more than one post shares same meta_value_num
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Create list from custom field comma separated values
- add_filter get array data before display in custom post_type
- Get previous and next custom post by custom field
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- Post Click Redirect to Custom URL instead of Single Post Page
- wp_insert_post deleting previous post custom meta
- Show posts from WP Custom Post Type selected from a field in a metabox
- Query custom post type and custom field by URL parameters
- meta query multiple values for the same key
- Show Post columns to specific users on condition
- Custom post types – meta_query: search lesson which starts sooner
- Create Inclusions and exclusions
- Populate custom post type/custom fields from an external database
- Custom Field to post_title
- Automatically convert standard posts with custom fields to custom post types
- Importing URLs of Audio Enclosures
- Retrieving custom post type fields without a post
- Get month and day from a Date Picker custom field
- custom fields not showing before get_header
- pre_get_posts with multiple post types AND a meta_key
- Search form to find custom meta box generated data
- Custom Info Box at end of posts?
- Display Custom Post if custom field is marked
- predefined custom field on registration page
- Show Custom Post Type taxonomy term that matches custom field
- Query Distinct Taxonomies of Custom Post Type
- Select Menu for Custom post Type does not save
- loop through custom post-type with two meta_keys
- Allow authors to create article image
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query
- Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
- WordPress custom field sorting, weird behavior: the latest post is at the end
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- How to consume external API from WordPress post editor and display the response data in the custom field?