I've trying to write an if statement (in WordPress) that says.. If there are pages following this template, list them all here (title only)..
It's for a "services" section on a website following the services template, i want to do this so if the client adds more services at a later date they will automatically show in the listing..
So far i have:
<ul> <?php if ( is_page_template( 'template-services.php' ) ) : ?> <li><?php wp_title(); ?></li> <?php endif ?> </ul>
Help! Thank you in advance!
Aucun commentaire:
Enregistrer un commentaire