To slightly sidestep your actual question, the template hierarchy allows you to have a custom handler for any post ID, category, taxonomy term, etc. That may be the quickest way to solve your problem: just create a template file that stands on its own and only serves request to one post (or category, or however the sales letter(s) are identified).
You don’t have to call get_header()
, get_footer()
or any of the other template functions, so you’re free to have a completely different page structure for a single post on your site.
Related Posts:
- Installation failed: Download failed. No working transports found
- What is theme-compat?
- W3 Total Cache, CDN and theme files [closed]
- Dynamic template serving, change theme_root using add_filter from current theme
- Multiple image logo for theme
- How do i structure my theme folder to avoid one huge list of files
- Loading template files from a subfolder in my theme?
- Hide Twenty Eleven Theme From Themes Page
- How to get Ajax into a theme – without writing a plugin?
- Is it mandatory to have a link to the theme designer?
- How do I change Twenty Nineteen’s primary color without using the color slider in the theme customizer?
- How to add the main style.css to my index.php?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Updating custom theme that is built from scratch
- Remove action within a class in a parent theme from the child theme
- single.php change into a modal popup bootstrap wordpress
- Exclude stylesheet from admin
- How to tell a theme to use different .mo and .po files?
- Can I apply a WP theme to a specific custom page template?
- How to move WordPress theme files into a subfolder without breaking the theme?
- get_header(‘header2’) not working properly in child themes
- How do you remove Link backs on Theme settings page?
- Is it possible to use child theme of child them?
- Disable Sidebar in the Product Page in Storefront Theme [closed]
- Renaming the Twenty Fourteen WordPress theme
- Do not show excerpt in post content
- Do we have rights to edit the source of the templates which are in wordpress.org?
- What’s the order of loading wordpress elements?
- How to add pagination to my code?
- Creating new templates in child themes breaks layout
- How do I tell how popular a theme is?
- Force theme or disallow theme change
- How to put a Worpdpress theme in spanish (having the po file)?
- How to run WordPress from other location on the same domain
- Custom options below pages/posts editor?
- Fatal error with a theme
- WordPress theme options and insert default value for serialize data
- How to change only one javascript function in wordpress child theme?
- Woocommerce StoreFront Showing Incorrect Subtotal in Customer Total
- Depending on third party plugins for theme functionality
- Restrict access to specific widget field based on user role
- What is the correct way to integrate wordpress with another php application?
- How can you showcase premium themes to clients without having to pre-purchase the theme?
- Functions containing parameter ‘yourtheme’
- The Cost of Installing Custom Themes
- Can I create a child theme from a premium theme without losing my posts and page etc that I already have?
- Change copyright text on the footer section [closed]
- Cant remove white space on my wordpress [closed]
- wordpress theme install failing
- WordPress suddenly creating theme errors
- Re-skinning Site
- How to reset a custom theme
- Warning : Invalid argument supplied for foreach() in theme php on line 56 [closed]
- Cannot changing login button color, have tried theme, plugins… is it GoDaddy managed?
- get_the_post_thumbnail() produces different HTML on same arguments
- Why submenu item’s background color is not changing by css?
- Cannot figure out what element header color is in wordpress theme [closed]
- How to edit the font color of the H1 on a single page?
- Searching for themes that post full article on home page by default
- Cannot see theme in my search
- What login/password do I need to install a wordpress theme?
- get_pages Not accepting my query
- Date based CSS/theme
- Custom fields in post later used in loop
- How to create a theme that can be updated by people using the theme on their site
- Functions.php error – when trying to change the theme
- Make a menu item unselectable
- conditional statement if wordpress theme block is empty then hide block
- Can I use non-wordpress themes in WordPress?
- jQuery is not defined – some theme features do not work!
- Set custom directory in theme for page templates
- How can I modify the CSS only for the search results page of WordPress?
- How to change WordPress theme outside of admin? Can’t access dashboard
- fixing page URL’s
- Don’t prepend WordPress base url to image paths
- Issues with dynamic widget in theme customizer
- Change name of WP content > Themes folder
- How to get dynamic template-function generated CSS into HEAD?
- Theme Dev | Convert Template to Theme
- How to Solve the WordPress Cron Job Site Slow down Problem?
- Password Protected Page + Showing Different Page If Not Authenticated/Authorized
- Show part of front page on another page [closed]
- Premium theme – hardcoded url?
- Any Mobile Theme Switcher – Theme not complete (Stylesheet missing)
- Categorising themes by folders in backend
- My site looks different when activating new theme
- Child theme after CSS modification
- unsual theme / interface
- Is it possible to find out what theme a specific web site is using? [closed]
- Rest API does not work after changing WordPress Theme
- totally confused about editing wp theme….new guy to wp
- Bad theme code – can you find the error?
- How can I use the Fresh & Clean theme for blogging? [duplicate]
- WooCommerce My Account Shortcode
- How to change twentytwelve child theme site title separator
- Header Paperpunch theme disappers with IE9 [closed]
- Why does twentysixteen take a free hand in dealing with longstanding usability principles? [closed]
- File execution order
- How to add color icons to front of custom block color palettes
- Custom Theme Additonal CSS “” are transformed to “>” and “<”