Wednesday, May 12, 2021
More

    Latest Posts


    10 Ways to Get More Web Design Clients, Fast!

    Create a custom PHP page in the WordPress environment

    - Advertisement -backlink tools

    How to create a custom PHP page that have access to all variables and functions within the environment of our WordPress blog? The answer is very simple.

    wordpress-blue-xl

    - Advertisement -

    First create a page in your theme folder:

    /wp-content/themes/your-theme-name/page.php

    - Advertisement -

    After that use this code in the top of your page

    <?php
    define('WP_USE_THEMES', false);
    require('../../../wp-blog-header.php');
    ?>
    - Advertisement -

    Now you can easly  use all the functions specific to WordPress (primarily the loop) in your custom page.

    - Advertisement -

    Latest Posts




    Don't Miss


    300x250_trinka_tagline

    Stay in touch

    To be updated with all the latest news, offers and special announcements.