Posts Adding custom php code as page template
Post
Cancel

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

1
<?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

http://www.satollo.net/plugins/php-text-widget http://www.satollo.net/how-to-create-a-login-widget-with-php-text-widget

Exec-PHP

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

origin - http://www.pipiscrew.com/?p=3643 adding-custom-php-code-as-page-template

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags