Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $post; $post->ID();
- function is_specific_pages(){
- $current_path = $_SERVER['REQUEST_URI'];//returns page path with leading slash
- //check if page path is one of the specific pages
- if( $current_path == '/page-1'){
- return true;
- }elseif( $current_path == '/page-2'){
- return true;
- }else{
- return false;
- }
- }
Add Comment
Please, Sign In to add comment