Adding custom php code as page template

source – http://stackoverflow.com/a/2810723
https://premium.wpmudev.org/blog/creating-custom-page-templates-in-wordpress/

under /wp-content/themes/themename/ make a new file templatename.php which is like

<?php
/*
Template Name: templatename
*/
?>

then when you go to ‘add page’, you will have an extra option to page attributes groupbox (template)
snap096

if the pageattributes not appear, or the template you created is not there, go and change the wordpress theme to something else and restore it back to your custom. the page attributes will appear!

Create a Login Widget With PHP Text Widget

PHP Text Widget

How To Create a Login Widget With PHP Text Widget

Exec-PHP

https://wordpress.org/plugins/exec-php/

By: |05/02/2016|categories: /