• hello i install wordpress on my website root.
    i create a page called add-post.php
    i added on page header : <?php require( 'wp-load.php' ); ?>

    now in my theme footer.php, i have ads with if conditional
    if is_page, display ad

    but when i acces add-post.php i can’t see the ad cz its not a Page

    so how can i use if conditional for external page file

    Thanks

  • The topic ‘if custom php file’ is closed to new replies.