0

I'm writing a custom page template and I want to do something like this: after typing tag inside page content, for example [custom-email-form] I want to place inside the content some html5 email form.

How to achieve that?

Thanks.

1 Answer 1

0

Do you mean that when the page is rendered your [custom-email-form] is replaced with html? That's just a custom shortcode. Just create a plug-in that registers the shortcode and then outputs its content when called.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.