How to check if page id is larger than a number
-
Hi all, can you please tell me how to write this php snippet correctly?
<?php if ( page id > 1000 ) { ?>
// Display something
<?php } ?>Or better,
<?php if ( page date is prior than a 2021 ) { ?>
// Display something
<?php }Any help is appreciated. thank you
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to check if page id is larger than a number’ is closed to new replies.