How to add a PHP page to WordPress,Create a Custom Page in WordPress, add php code in WordPress Page,Run PHP Code in WordPress Posts and Pages,Shortcode in a Template
if want to create a custom page for my WordPress blog that will execute my php code.
Would you like to make a custom page in WordPress? You may see that numerous WordPress destinations have distinctive formats for various pages. A custom page enables you to have distinctive design in appearance from standard pages in WordPress. In this article, we will demonstrate to you proper tell you how to make a custom page template in WordPress.
How to add a PHP page to WordPress
you create a custom page template, named something like template-custom-service.php, and this file theme folder.
Now edit this file and add following code
<?php /** * Template Name: Custom Service Page */ get_header(); // YOUR CUSTOM PHP GOES HERE get_footer(); ?>
Now create new page from wordpress admin and assign your custom template.