-
Duplicate the post.php in your theme folder.
-
Rename that file as any_name.php
-
Enter the following code at the top of that file.
< ?php /* Template Name: Any Name */ ?>
-
Add your php codes to that file.
-
Go to admin panel — > Create a new page — > Select your template and publish the page
Related Posts:
- Include WP_Query in my own PHP file?
- esc_attr() right way and use
- Enforcing password complexity
- Include a external PHP file into a WordPress Custom Template
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- Include files in functions.php
- How Attackers write script into my php files?
- load/require specific php files for specific pages/templates/post types
- ob_get_clean returns empty string, ob_get_flush outputs string
- Renaming wp-content folder dynamically
- How do I create a WP user outside of WordPress and auto login?
- Security – Ajax and Nonce use [closed]
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Is it unsafe to put php in the /wp-content/uploads directory?
- where to include a php file
- Sanitize get_query_var() url parameters
- Include Class File in WordPress
- nowplaying.include.php Will Not Display Results
- integrating external php library into wordpress- the right way
- Change title and meta description in included page (not template)
- Can I change a variable in a content part while calling it?
- the_author() not working outside the loop
- When must I use and verify nonce?
- Hiding WordPress Plugin Source Code
- Is this code malidcous
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- Put CSS inside a PHP file and include it the right way
- Admin username and password
- Evaluations of two wordpress security plans against php code injection attack
- WordPress custom login form using Ajax
- functions.php is being included twice, creating PHP fatal errors
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- PHP help get_template_directory + PHP include
- Detect session/cookie variable in wordpress to prevent access to documents
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- SQL Injection blocked by firewall
- How to prevent XSS alter custom global javascript object & methods in WordPress
- code is skipping a div
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Cannot execute php files in wp-content
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- Security: blocking direct access of php files
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- PHP include is only working in certain places in my custom WP theme
- Password minimum length in personal subscription [closed]
- How to add API security keys into JS of wordpress securely
- Is it best to avoid using $wpdb for security issues?
- Hardening uploads folder in IIS breaks images
- What is the proper way to include a PHP framework into my theme?
- Troll the hackers by redirecting them
- php include not working in custom page
- Post’s ID pattern?
- Security updates to 3.3.2
- Using WP functions such as the_title() in an included php file
- What’s the best way to include PHP code in pages?
- how to prevent wordpress admin from logging in via woocommerce my-account page
- malware undetectable by multiple scans
- Decoded malware code [closed]
- How to include custom PHP file both in header and footer files
- Updating From Mobile App – Exposing Site to Hacking
- Include a file that has a function in it
- How do I call an external php non WordPress class into functions.php?
- security concerns if using html data-* attribute for l10n?
- How to correctly escape an echo
- Reject all malicious URL requests functions.php
- portfolio site – about this site section – is it safe to post some code
- echo cutom css code to WordPress page template file ? is this safe?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How to secure my php forms
- $.ajax results in 403 forbidden
- Site infected by link
- Before & After Content – After Content directly below Before Content when using require_once
- Access WP files on “server 1”, from “server 2” – using wp-load on an external website
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- loading a php file to a specific page id
- How do I fetch a data from an external database into my wordpress homepage
- How do I fetch a data from an external database into my wordpress homepage
- PHP get_category() function redeclared
- Retrieve $_POST data to send to javascript without using localize script
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- What is the best practice for restricting a section to logged in users?
- How do I / Is it possible to execute an external PHP file / function inside WordPress?
- Include a php file that is above WP installation hierarchically?
- How can I include a file related to blog URL? Nothing seems to work
- WordPress blog set up
- Shortcode not passing variable to included file
- php “use” not working in template [closed]
- How to include a php file in every post and page [duplicate]
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- Shortcode to include PHP file, pass various parameters to include?
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Should I use include(_once) or require(_once) for loading php-file with customizer settings?
- what to do after instlling cyberpanel on VPS
- How to change upload directory in wp_handle_upload
- Calculate percentage of post by category
- Can is_page() be combined with a switch control structure?
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- have_posts() execution failure
- Limit the number of characters/words in an excerpt for a related posts section
- How to create categories out of a list of words?