One option could be to create a private (show in Dashboard, hide from front-end) custom post type (e.g. article_section
). You would relate these sections to a single post (Article) with the cpt’s post_parent
property so that the sections would become the children of the post. WP doesn’t really care if the child posts have different post type than the parent post. Querying parent-children relation (one-to-many?) is easy and efficient.
Then create a custom dynamic block which, when added to a post, would query the post’s child section cpts and list them in publish date order (newest first). This list can then be manipulated with js to, for example, change the layout. Additionally you can create an ajax call to WP REST (or admin-ajax, if you prefer the old way) to periodically check for new child sections.
Related Posts:
- Submit post and upload image from front-end
- Linking Two Post Types
- Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Problem excluding category from get_next_post
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- How do I write this SQL statement for Posts written in last 24 hours?
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- Change Post Title Edit Box
- Disable feeds for specific custom post types
- Get the post children count of a post
- Quickest way to get last or oldest post date – WP Query
- Before Delete Post
- How to use custom fields to enable sticky posts on custom post types?
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Check Title Unique Or Not and If not error message and dont save
- I am having a problem with form updating/editing WordPress post on the frontend
- get_template_part for custom post type content not working
- Show Two custom Post type and their posts on category page
- count_many_users_posts except current logged in user?
- Custom post type and body_class: Remove “blog” class
- Shortcode for display posts on home page show only one post
- Find the user who initially created the post
- How to get the post type from a category id?
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Getting posts under the custom post type ui category
- create parent post using wp_insert_post
- Turn on and off custom post type from admin?
- I would like to have different styles for my posts based on the content of each post
- List custom taxonomy specific to one custom post type
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Add custom post type settings to wordress default posts
- JS innerhtml changing style when using AJAX
- Side effects of Script and Iframe in post
- Set a checkmark in a category based on a URL-parameter
- Several post types on WP Query by tag and taxonomy
- Admin Column does not populate with data
- Limit the post for differents custom post type in the same wp_query
- Some posts from custom post type to subdomains
- how to check if custom post title exists or not?
- wordpress remove views from action links in a custom post
- Stores category posts in an array
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Generate new post from email
- YOAST SEO won’t work on custom post type archive [closed]
- Batch Extract Date from post title and put into ACF custom field
- Get post format
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Display post from custom post type
- Use post in multiple places on a page with multiple posts
- Custom post type title of each author in his own post
- Custom Post type registering as page post type
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Enable comments for post when comments meta box removed
- Making a form for user to add new custom post with custom taxonomies and custom fields
- How to: Add a publish immediately button when editing custom WordPress posts?
- Extending post by email
- Checking for custom field in admin pages
- Custom Posttype URL
- Display custom post front end filter by ACF equals current user
- Admin slow on Postlist (over 30k Posts in Database)
- Best way to fix bad count on All | Mine | Published
- open custom post type in popup window instead of page
- Post category behave like a Post in back office menu
- Save data is post using php front end
- How do I find the count of the current post?
- Custom page with no headers, footers and its own CSS, Javascript
- Permalink for specific post type
- Get queried object for custom post type count
- edit.php all post not working
- Adding specific custom fields (images) to post excerpt
- Add input radio menu to post
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- How to add custom PHP code in post header?
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- How can I get the last 5 element of this tax query?
- custum post inner page not taking single-gallery.php? it redirecting to archive page
- Change Custom Post Type to Post + Category
- How can i order my posts by post type?
- When post is Published, insert into custom table a number – custom post type
- Get post from Category by Priority
- Cannot use pages created on WP
- Different post types arranged on one page
- Calling specific page with wp query
- How to get Last post Id of custom post type in wordpress
- Display a post count from a custom metabox selection
- Display all post types together
- Custom Post Type children and grand-children in one list
- Custom Post Type post not appearing
- How to call wordpress custom post type page
- How to filter homepage posts by popularity? [closed]
- Automatically add custom taxonomy when meta value gets to a set number or beyond
- Change post structure
- display posts, pages and custom post types from another wordpress site
- How to develop Knowledge center in WordPress Website