Adding PHP Page to Wordpress TemplateGet the solution ↓↓↓
The top of your custom php page must contain something like this
/** * Template Name: My Custom Page */
Then go into Wordpress, create a page (name it whatever you want) and then under Page Attributes change the Template to 'My Custom Page'. This will create the link from your custom page to a Wordpress page that you can naviagate to.
you need only create a template for the page you want. In the template file you can insert php code as needed.
1 - First create a php file using the nomenclature "page-" + [My-Name-page], for example: page-our-team.php
2 - In the file header put the following comment to the wordpress recognize the file as a new page template:
<?php /* Template Name: PAGE OUR TEAM */ ?>
3 - Before starting with its fully custom code, test to see if everything is correct.
<?php echo "My happy custom php code";?>
4 - Save your file and go to the administration panel of wordpress. Create a blank page, and select the template you created in the screen right selection list.
5 - Test the page's url in your browser and see if your test worked.
6 - Feel free to ask if you have questions.
Creating a new template is good way for you, follow the steps as:
1:Create any new file in your theme and paste the following code at the very top
<?php /** Template Name: Team */ ?>
2: Add your code in this created template and save it with template name [templatename].php so it will be team.php for this example. You can name it any other structure you like as long as it is a php file.
3: Login to your wordpress admin panel, create New Page there, as you already have your code in file so left the content blank.
4: From right hand side, Choose the created template (in this case team.php) and assign to page.
Keep in Mind if you are using thirdparty theme then save your template in child theme.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: the process class relies on proc_open, which is not available on your php installation.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.