wordpress check if page

To check if a page is being displayed in WordPress, you can use the is_page() function. Here is an example:

<?php
if ( is_page() ) {
    // The current page is a WordPress page
} else {
    // The current page is not a WordPress page
}
?>

The is_page() function returns true if the current context is a single page. If you do not specify a page ID or page title, the function will return true if any type of page exists.

I hope this helps!