Posts

Showing posts from November, 2014

How To Write your Own Wordpress Plugin

Create your own PHP script usng the following template: <?php /* Plugin Name: Your Own Plugin Name Description: What your plugin does Version: 0.1 License: GPL Author: Brendan Cornelius Author URI: http://br3nd4nc.blogspot.com */ ?> You can add your own PHP code in this file and upload to the "plugins" folder on your server via FTP Once you upload your file go to your plugins section in your Wordpress Dashboard and activate the plugin

How to Add your own shortcode in Wordpress

In your "functions.php" file in your child theme folder create a function and use the following code to initiate the short code add_shortcode('credits', 'show_website_credits'); The first variable above is the shortcode itself ( in this case [credits]) and the second variable is the name of the function. In total it will look like this function show_website_credits() {   return "Website developed by Brendan."; } add_shortcode('credits', 'show_website_credits');