I have a “Go back button”:
$url = htmlspecialchars( $_SERVER['HTTP_REFERER'] );
echo "<a href="https://wordpress.stackexchange.com/questions/211840/$url">back</a>";
I need to display the page title of the $url
, something like this:
$url = htmlspecialchars( $_SERVER['HTTP_REFERER'] );
echo "<a href="https://wordpress.stackexchange.com/questions/211840/$url">Go back to the INSERT PAGE TITLE HERE</a>";
Does anyone know how to do this?