-1
I want when my site is accessed with the reference? ref=app show a page, if it is not going to appear another.
But just make that mistake:
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression"
instead) in D:\XAMP\htdocs\baixarmp3\wp-content\themes\b4-baixar-mp3\single.php on line 61
My code from line 61:
if (isset($_GET["ref"] == "app")) {
My complete code:
<?php
if (isset($_GET["ref"] == "app")) {
include ('single/single-app.php');
}
else {
include ('single/single-site.php');
}
?>
'Cause you don’t do
if ($_GET["ref"] == "app") {
? It makes little sense to check whether a boolean (the result of the expression in question) is defined. An expression will always be "defined"...– Luiz Felipe