How to get the value of input hidden html from text editor to custom page template?
I have 10 or more input hidden in 10 or more pages with different values in Wordpress text editor and I want to get the value using $_POST in a custom page template.
How to do this? I tried to called the input hidden name in my custom page template but the value is not getting.
Text editor
form method="POST"
input type="hidden" name="segment" value="test"/
/form
Custom page template
$segment = isset($_POST['segment']) ? $_POST['segment'] : '';
Topic page-template php forms html customization Wordpress
Category Web