Your idea for two custom post types is a good start, but you may wish to consider using taxonomies for the activities and the custom post type for the location.
To determine whether the activity needs to be reserved or not could be done by using a custom field and a check on the value with get_post_meta()
.
That should be enough to get you started.
Related Posts:
- Form action/link to render a plugin in WordPress front-end
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- I am having a problem with fetching product data in the Gutenberg block editor
- Create custom post type on successful woocommerce order [closed]
- Detect where custom post type is declared
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Send email button in custom post type backend
- Hook to override title, image and content
- Insert Multiple Post with Same Publish Button
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- WooCommerce registration password field not displaying
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- get_object_taxonomies() returns empty array for custom post type
- How to display product subcategories into my custom post type single page
- WordPress theme custom capabilities not works
- custom post type not showing in menu
- Custom posts don’t work
- How to retain $_POST data when submitting form to custom page
- No posts found – Custom Post Type show_ui
- How to customize a permalink (URL) structure?
- Adding a custom post type taxonomy template in plugin
- Get post from custom post type order by two taxonomies
- Plugin: register custom post types, child ready and performance best practices
- How to add a custom taxonomy to show up in a custom post type menu?
- Display users uploaded files as posts
- Post form as custom post
- Give a permalink to Custom Post Types without title
- Getting template_include to work when allow_url_include is off?
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- WordPress post_where & posts_join not working only for custom post type
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- WordPress multiple custom post types capability conflict in a single menu
- changing meta value and meta key of price field
- Getting meta in editor plugin, and event triggering issue
- Orderby CPT custom fields not working
- Unable to get Custom Plugin Options data
- Update post meta not working in transition_post_status
- Use custom metabox to update automatically a post after a given date
- Woocommerce search pagination not working
- WooCommerce Customer Role Delete Custom Post Type
- Addition of custom option panel crashes Media Library & Admin Area
- WooCommerce sort products by the actual product width(not the shipping width)
- Manage custom post type in woocommerce /my-account/ page
- Custom Permalink to remove category word , keeping posts permalink with date?
- Woocommerce custom field search in custom post type [closed]
- What is the best practice for displaying my plugin content in themes?
- Custom post type archive page blank
- Add Custom Post type menu to another menu in specific location
- Set a CPT slug as a base name for all the taxonomies
- Modifying custom post type created by WooCommerce
- Hide a widget inside a div on specific type of post
- How to use TinyMCE Editor for one of my custom post meta field?
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Allow add new post access to custom post but not wp post for some role
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- Custom post listing page layout of custom post type
- A form that can save/edit after first input
- Display Woocommerce Orders for specific author [closed]
- A custom post type in another post type
- Adding a metabox on a CPT’s submenu page
- How to make front end form only accept certain values
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Using POST method in meta box, no results
- Form action doesn’t work if slug isn’t same as custom post title
- Plugin fatal error
- custom comments form for custom post type
- Wrap meta boxes & data handling for specific post types in classes?
- Problems wp_insert_post and save_posts filter
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- Suggestion on custom post type/ taxonomy relationship
- Sort posts in loop by the WooCommerce Membership of the author
- wordpress remove views from action links in a custom post
- When should I create custom post types?
- Custom post type’s extra fields – how to handle?
- 404 Error on form submission within custom post type
- Save Multiple Metabox values
- Send a conditional email notification when a custom field value changes in Post Type
- WordPress custom post type capabilities issue
- show custom value from frontend form in a post (custom post type)
- HowTo: Custom Post Type (Meta) to Custom Table
- how to set a WP Plugin’s url
- Getting 400 Bad Request on AJAX Call
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- detect your custom post type in WordPress
- ACF in wordpress
- Theme independent plugin by using default page template
- Option page’s form doesn’t work
- How to set up Custom Post Type archive page as Front page
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- How to group navigation items in the admin panel
- What’s an efficient way to change the post status of many posts at once?
- How can I include active content in a custom post type?
- Dynamically insert code to custom post type loop
- Show current custom taxonomy