Single Page template not working as expected1 user found helpful
I have a single page that I don't want to use my theme's view.php but would rather create a custom template for.
I created a page in my theme of the same name as the single page the contents of which are:
The template is being used instead of view.php - but my single page content is not being output at $innerContent - this variable is an empty string at time of rendering. If I delete the template, view.php renders the single page as expected, I add the template back in and I get nothing.
The page object does exist in the template file,
I just did a fresh install of 126.96.36.199 last night and advanced permissions are enabled. Anyone have any thoughts?
To explain it another way - an overridden single page is NOT a template/wrapper like view.php, it is both the wrapper as well as the contents of the single page itself.
So as an example.
If your original single page has:
And your theme's view.php has:
When you override the single page by putting it in your theme it would look like: