When I use something like:
<?php if ($_SERVER['SCRIPT_NAME'] == '/index.html'): ?>
// Only Show in Index
<?php endif; ?>
to set something to only display in the specified page. Is there a way to wildcard the pages? For example, setting it to only display on a wildcard of pages in a directory '/posts/*'
.