I have the following URL structure.
example.com/items/something_something.
What will be the php code to verify that the url contains the word "items" and then displays specific divs?
<?php if () { ?>
Show this
<?php } else { ?>
Don't show this
<?php } ?>
thank
source
share