有没有办法在wordpress的.twig文件中编写php代码?我正在尝试使用.twig模板文件中的表单值发送邮件。
第PAGE-SHORTEFORM.TWIG页
{% extends "base.twig" %}
{% block content %}
{% block body %}
I am
It is a long
Gender
Male
Female
Other
Lorem
O
B
B+
B-
A-
.
There are many
passages of
Mumbai
Delhi
Bangalore
Hyderabad
Ahmedabad
Kolkata
classical Latin
Gujarat
Andhra Pradesh
Tamil Nadu
Maharashtra
West Bengal
first true
Vijayawada
Kanyakumari
Rewalsar
Dehradun
24 parganas
There are many
There are
Phone
Mobile number
My information may be shared with the
Yes
No
Emergency Contact Person Details :-
I am
It is a long
Gender
Male
Female
Other
Lorem
O
B
B+
B-
A-
.
There are many
passages of
Mumbai
Delhi
Bangalore
Hyderabad
Ahmedabad
Kolkata
classical Latin
Gujarat
Andhra Pradesh
Tamil Nadu
Maharashtra
West Bengal
first true
Vijayawada
Kanyakumari
Rewalsar
Dehradun
24 parganas
There are many
There are
Phone
Mobile number
My information may be shared with the
Yes
No
Agree & Submit
{% endblock %}
{% block extrajs %}
var nlform = new NLForm( document.getElementById( 'nl-form' ) );
var emargency = new NLForm( document.getElementById( 'emargency' ) );
{% endblock %}