include files based on category
-
on https://www.all-babes.com/babes/sandy-summers
you can see a profile on top, which is shown by a conditional tag<?php if (is_category('sandy-summers')) { ?> <div class="profile"><?php include('profiles/sandy-summers.php'); ?></div> <?php } ?>
I have to create a tag for every category (which represents 1 model).
Can I include a variable so I have to add it only once and it grabs the correct file, based upon which category is viewed ?
- The topic ‘include files based on category’ is closed to new replies.