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

php on a specific page #314

Open
Vell61 opened this issue Jan 13, 2024 · 1 comment
Open

php on a specific page #314

Vell61 opened this issue Jan 13, 2024 · 1 comment

Comments

@Vell61
Copy link

Vell61 commented Jan 13, 2024

Tell me how to place PHP code on a specific page, for example contact_form(), display a contact form (plugin) on the Contacts page (/contact)? Works only on Home...

@robiso
Copy link
Collaborator

robiso commented May 6, 2024

@Vell61

you can use an if statement and echo the contact form there in your template:

currentPage == 'yourNewPage') { } else { echo the contact form } ?>

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

No branches or pull requests

2 participants