Skip to content

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

Open
timiwahalahti wants to merge 11 commits intolibreform:masterfrom
timiwahalahti:issue-93
Open

[WIP ]Make form CPT un-public and have own preview functionality#158
timiwahalahti wants to merge 11 commits intolibreform:masterfrom
timiwahalahti:issue-93

Conversation

@timiwahalahti
Copy link
Copy Markdown
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