You should have a separe custom template for custom page layout. The first one which is not broken is a post type while the other one is a page type which has different layouts. Create a custom page template with a layout like the single.php and use it in the page you are creating.
To create a custom page template, please refer to this wordpress doc : https://developer.wordpress.org/themes/template-files-section/page-template-files/
Related Posts:
- One button to change all settings in theme customizer?
- Need help setting default setting value for radio button in theme customizer
- Is having multiple theme customizers for different pages possible?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How to get the registered sidebar’s name by its id?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Dynamically change feature image in customiser
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Can’t load WP function into external function
- Set WordPress Default Template
- Customizer: active_callback and sanitize_callback incompatibility?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Skt full width basic slideshow problem
- How do I link a button I created in theme customizer to a function?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- WordPress Customizer Default Image
- get_template_directory adding FTP root folders in urls
- How can I assign separate stylesheets to different pages?
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- Getting text from custom field from customizer
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Menu to the right of screen on desktop using Bootstrap 4
- Use Custiomizer to setup meta theme color tag
- How to add button to top of theme customizer?
- How to store the_post_thumbnail() value in a variable
- Function to return true if current page has child pages
- Proper use of Output Buffer
- List of all theme customizer control types?
- How to export/import theme customizer settings?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Warning: printf(): Too few arguments in helpers.php file
- Please show me how to use an if/else statement in combination with wp_enqueue
- How to make function appear in sentence?
- home.php show blog posts as grid view
- blank white page when post/update/change option etc
- How to Update an old theme for the latest wordpress version
- get_comments_number() returns 0
- Removing “Powered by” footer using child theme PHP [closed]
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- How to add aria role and schema markup to custom walker container
- get_page_templates only return templates with “home” in the filename
- Is there a hack for using is_page() within the function.php file?
- Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS
- Randomize Color Scheme Selection in Theme
- Extract and display user infromation on an automatically created page
- Show different website layout if no sidebar added
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Displaying Slider in Front Page (home) using Customizr Theme
- call a string/function from database
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Commas in Tag Cloud
- WordPress redirects page query parameter in URL
- Need help for some PHP code
- How to change basename url for wp-admin?
- how to replace h1 entry title with h2 in category pages only
- Not able to remove caption shortcode from the content
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- How to use data URL in WordPress?
- How can I prevent a shortcode div from extending beyond its boundaries?
- Unable to retrieve get_author_posts_url
- Display post date also if the date it’s the same for each post
- How to override theme’s public static function inside of a trait?
- how to use 2 index.php file One for mobile and one for desktop
- WordPress child theme, creating a custom php template page
- Customizer: How to Sanitize a Decimal Number Range
- Theme editing “post thumbnail” help
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Using get_theme_mod with checkbox to display content
- Rotating Header Images
- Where can I find the declaration of `$_wp_theme_features`?
- Calling PHP function doesn’t work in index.php
- Create a custom theme-specific page, invisible in the admin-panel?
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Save the outputted image into the Media Library, with a different filename and extension
- WordPress get_post_meta issue
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Image not displayed
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How can I clear the theme mod settings?
- Cant get theme to change footer color through theme customizer
- Adding code to the function file
- Adding php within a return statement [closed]
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- How can I fix my pagination?
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- a problem in class in class-wp-hook.php
- Font Awesome Icons as squares [closed]