<?php function the_title() { echo "Gas & Oil"; } function get_the_title() { return "Gas & Oil"; } ?> <a href="mailto:a@mail.com?subject=<?=urlencode(the_title()); ?>">Apply</a><br> <!-- doesn't work --> <a href="mailto:a@mail.com?subject=<?=urlencode(get_the_title()); ?>">Apply</a> <!-- works -->
You have javascript disabled. You will not be able to edit any code.