How to Create Your Own WordPress Shortcodes

Simple Shortcodes: Shortcode functions can be added to plugin code or your theme’s functions.php file. If it’s the latter, I’d recommend creating a separate shortcodes.php file, then adding include('shortcodes.php'); to functions.php. Here’s a basic “Hello World” example: function HelloWorldShortcode() { return '<p>Hello World!</p>'; } add_shortcode('helloworld', 'HelloWorldShortcode'); Enter [helloworld] somewhere within a page or post to output the result of … Continue reading How to Create Your Own WordPress Shortcodes

Creating a CRUD system in WordPress

The abbreviation CRUD comes from Create, Update, Update, Delete – which, in other words, means a data management system. In web terms it would most probably mean a piece of software which allows you to manage entries in your database, usually MySQL, PostgreSQL, MS SQL, or other. A great, and, maybe, the most popular example … Continue reading Creating a CRUD system in WordPress

WordPress Cheatsheet

Basic Template Files File Name Description style.css style sheet file index.php home page file header.php header content file single.php single post page file archive.php archive/category file searchform.php search form file search.php search content file 404.php error page file comments.php comments template file footer.php footer content file sidebar.php sidebar content file page.php single page file front-page.php … Continue reading WordPress Cheatsheet

WordPress Introduction

What is WordPress? WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today. It is the most popular blogging system in use on the Web. WordPress was used by more than … Continue reading WordPress Introduction