In this situation I would use the page as a placeholder to configure the sidebars, even though WordPress will completely ignore it on the front end.
Just add the page, make sure the slug is trainings
, let the client set it up as they need, and then in your template:
if ( $trainings_page = get_page_by_path( 'trainings' ) ) {
$acf_sidebars_data = get_field( 'sidebars_acf_field_name', $trainings_page->ID );
// Carry on sergeant
}
Related Posts:
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Custom Post Type Archives by Date with Custom Permalink
- Make permalinks based on an ACF-field
- ACF Relationships in Custom Post Type Permalink
- WordPress custom post type archive with description
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- How do I get the permalink structure to work like this?
- Custom template won’t load for a custom post type (custom permalinks used)
- CPT archive admin menu label
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Custom post type archive pagination 404
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- How to hyperlink content from archive page with custom post-type
- Permalink problems with custom post type and custom taxonomy
- ACF for custom post type archive pages: which hook to use?
- Custom Post Type Archive template not being called
- Custom post type category permalinks and archive pages
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- How to set a ‘page’ as parent of a custom post type?
- Custom post ID & display information related to this ID
- WordPress URL rewrites using Advanced Custom Field
- Finding the CPT archive template source
- ACF Pro Accessing fields on a Custom Post Type
- Permalink for custom post type pages not working
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- WordPress page not showing up – replaced with last 10 posts?
- Custom permalink rewrite rules – how do I fix this?
- Custom taxonomy in custom post type archive with pagination
- Permalink of custom post type partly broken
- Custom Post Type Archive Links Not Working
- Have two (permalinks) urls for a same custom post type
- Get post id of permalink for a specific custom post type?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- How do I get the permalink of a custom post type?
- Get custom post type slug for an archive page
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Custom Post type & Taxonomy URL structure
- Why does a custom post type need the ”hierarchical’ args setting?
- Permalink rewrite with custom post type and custom taxonomy
- Semantic URL Custom Post Type and Taxonomies permalinks
- How to make an archive page displaying posts in a date range
- Categories and Tags not working!
- Archive filter disappears on no results?
- Display Next/Prev when looping Custom post-types archive?
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- Link users to a custom post type
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Removing parent slug in hierachial custom post type
- Wrong generated page_name/slug on first publish of custom post type
- CPT Archive with core Category
- Validate custom fields before save using WordPress Rest API
- Stop / prevent WordPress from updating permalinks of custom post type
- Custom post types and tag archive pages/permalink structure issue
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- How can I dynamically add a post to a custom post type which uses a custom field?
- Why doesn’t a custom post type permalink ever hit index.php
- WordPress post_where & posts_join not working only for custom post type
- Allow post/page hierarchy across different post types?
- custom post type WYSIWG removes paragraphs when displayed
- ACF From & To Date Validations
- Custom Post Type Permalink
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- How to update post meta on uploaded image from a custom form?
- Order post by date with ACF
- I’m having trouble getting the permalink sample on my custom post type edit page to work
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- Post loop count is not in order
- How to inherit field value from parent post into in child / sub post
- How to use single.php for creating, reading and editing Custom Posts with ACF
- Custom Post Type to replace Woocommerce products – page not found error
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Stop displaying Permalink
- Permalink with hierarchy of Custom Post Types
- Custom front-end form for adding post – Category problem
- Custom Endpoint For Specific Custom Post Type
- Displaying all posts by category and showing content on click
- Show custom post type event if current day using ACF
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- Tell wordpress to show a single page instead of an archive page
- How to make “single post” permalink maintain it’s sub-page structure
- save_post affect creation and deletion
- Page as parent for CPT and other pages
- Custom permalink with custom taxonomies for custom post type
- Change the url of a custom post type to include taxonomy
- Multiple custom post type and permalink issue
- Remove sequential number from permalinks
- Site loads very slow for archive custom post type page
- How to query posts by meta keys AND under specific category?
- change precedence of permalink for post_types?
- Redirect permalinks after creating custom post types
- how to load custom single.php?
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- Custom Post Type Permalinks Problem
- Problems with custom post type and hierarchical permalinks
- Register a title automatically with a relationship field
- Posts picking up old Permalinks, how to reset?
- Remove slug from Custom Category Permalink + dual-category permalinks
- WordPress Set A Static Page/Template For All Sub-Pages
- Why custom search engine only searches in post titles of custom posts?
- Post object GUID adding http:/