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?
- Made a Custom Post Type using ACF. Via the dashboard I cannot see the view button to see the post
- Cannot create custom post types with a specific name
- Custom Post Type slug same as page name
- How to query WordPress posts bycustom field with a max characters’ length
- How to include term custom meta into the custom taxonomy term permalink structure
- How to display custom post in archive section of the wordpress page?
- Blog posts for custom post type only
- Content Editable CPT Archive?
- Path to custom post type
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- list archives per post types
- The loop seems stuck to a single (now deleted) post
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Canonical url differs from custom post type archive URLs
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Display a custom posts page for post type
- Permalinks: custom post type -> custom taxonomy -> post
- CPT’s with landing page instead of archive – Url Rewrite?
- How to update post meta on uploaded image from a custom form?
- How to change permalink to include custom post type
- posttype/taxonomy/term archive page 404 error
- Removing Custom Permalink Structure for Custom Post Type
- Custom post type, permalinks, taxonomies and blog posts
- How to group posts and get a mixed posts and groups view?
- Custom post type permalink tag 404
- Custom post type permalink returns 404
- Is it possible to have a custom post type with feed but without the archive?
- Use the same date-based permalink structure for all post types
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- permalink /category/post-name with custom post type and taxonomy
- “Post name” permalink returns home page for custom posts
- Custom post type and taxonomy permalinks
- Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)
- Multiple Frontend Filters Using Advanced Custom Fields
- Hierarchical permalinks for custom post type and taxonomy
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Make custom post types and pages place nice, re: rewrite
- Custom Post Fields at the beginning of a Custom Permalink
- Flush Rewrite Rules when new site is created on network
- Integrate Custom Post Type Events into Calendar
- Pretty URLs and custom post types
- Form action doesn’t work if slug isn’t same as custom post title
- How to make permalink structure %category%/%postname%/ work for custom post type?
- Specific routing for CPT
- set permalink for CPT
- Lost of query parameter when using permalink
- Custom permalinks rules don’t match and lost of query var in the process
- Order post by date with ACF
- Custom Post Type – Duplicate Page Slugs
- Displaying custom field according to date
- Rewrite rule for Custom post type Monthly and Yearly archive
- Different results between permalink and query var search
- menu link to custom post_type?
- Custom permalink with child taxonomy terms
- Custom post type Permalinks with hierarchical Taxonomies
- How to set the seo title tag on a page by page basis?
- WebP Fallback for Inline Background Image in Style Attribute
- 404 in custom post type feed with mistake permalink
- Paginate_links in custom post type template
- Adavnced custom fields relationship query plus query inside
- Query based on custom fields start and end date
- Add a permalink variable onto custom post type URL after post name slug
- My archive-posttype.php template is not loading
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Custom Post Archive is not working
- Advanced custom field boolean value in custom post type