I have a top navbar on my site that is screwing up my feed. Is there a way to create an "if" statement thats asks: if it is this url, then follow this code, else.....
I found this code: <?php $homepage = "/"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage==$currentpage) { include('homepage-ads.php'); } ?> Is there a way to change the include('homepage-ads.php'); to just a long string of code?
<?php $homepage = "/"; //page that you want to show your feed on $currentpage = $_SERVER['REQUEST_URI']; // page you are on if($homepage==$currentpage) { //verifies if same then show feed // Remove include('homepage-ads.php'); ?> start feed here <?php } ?> PHP: