Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP ]Make form CPT un-public and have own preview functionality #158

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

timiwahalahti
Copy link
Member

This makes form CPT unpublic and introduces a new way to have the previews. It's still very much WIP and proof-of-concept level, but basically works.

We check on template_include filter if there is preview GET parameter, use theme default page template and modify the page title with the_title and content with the_content filters. This way we ensure that proper theme template is used and styles do not break badly.

What I need to test, is what happens when frontpage has it's own template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant