If page title is current month
-
Hello
I’ve made a calendar system where each month has his own page. If the page name equals the current month, the month page doesn’t need a header and footer.
I’ve already made that codes, but I am searching for the if-clause ‘if page name is current month’.
Is there a way to use
date('m')
to check if the month page is the current month?This is the if-clause: (the
'July 2015'
has to change automatically)<?php if (is_page('July 2015')) : ?> MONTH PAGE WITHOUT HEADER AND FOOTER <?php else : ?> FULL MONTH PAGE <?php endif; ?>
Thanks a lot! ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘If page title is current month’ is closed to new replies.