You can’t directly use sendTrailer.php
,wordpress can’t find this custom page directly so you have to specify fully path of that page using
In your ajax function write
url : '<?php echo get_template_directory(); ?>/sendTrailer.php'
You can’t directly use sendTrailer.php
,wordpress can’t find this custom page directly so you have to specify fully path of that page using
In your ajax function write
url : '<?php echo get_template_directory(); ?>/sendTrailer.php'