Tuesday , 16 July 2019
Home / Tag Archives: how to create a wordpress plugin

Tag Archives: how to create a wordpress plugin

WordPress Metadata – WordPress Plugin Tutorial

WordPress Metadata

Let’s finish up our plugin by extending it with metadata. So far, we’re able specify a post type and add taxonomy to it, but what about adding some custom fields? This can easily be accomplished with metadata. It’s very simple to work with WordPress metadata. We’ll be creating meta boxes again, so if you forgot how to create meta boxes, …

Read More »

WordPress Taxonomies – WordPress Plugin Tutorial

WordPress Taxonomies

Organization is important in WordPress. WordPress taxonomies allow us to organize our content. For example, our recipe plugin allows us to create recipes, but no way to search for certain recipes by origin. With WordPress taxonomies, we can easily do this.  The process is very similar to creating WordPress custom post types. If you would like more information about WordPress …

Read More »

WordPress Custom Post Types – WordPress Plugin Tutorial

WordPress Custom Post Types

One of the amazing features that comes with WordPress is the ability to create WordPress custom post types. What are  WordPress custom post types? A post type is a type of content. For example, a post is a post type. More information about post types can be found here. There will be times where you may want a custom post …

Read More »

WordPress Transients API – WordPress Plugin Tutorial

WordPress Transients API

Today, we’ll be discussing how to use the WordPress transients API. Most bloggers don’t use WordPress out of the box. They’re usually using plugins ranging from completely custom to ones they found in the WordPress plugin directory. If you’re a blogger, you’re usually adding fresh new content daily. With that being said, you as the developer, must find a way to …

Read More »

WordPress Meta Boxes – WordPress Plugin Tutorial

WordPress Meta Boxes

WordPress meta boxes are used to display certain information or options in a page. It’s when you have something to display and  don’t want it to  have a page of its own, but would like it to be a part of a page. An example of a  meta boxes is  the ones you see on the WordPress admin dashboard. Let’s …

Read More »

Widgets API – WordPress Plugin Tutorial

WordPress Widgets API

The widgets API is what we’ll be learning next. It’s very simple to use. It does involve having basic knowledge of PHP OOP. If you don’t know how to create classes, then I recommend you learn the fundamentals of OOP and then come back here. Getting Started Create a new plugin called wpWidgetEx. In our index.php file, lets use this …

Read More »

WordPress Settings API Part 3 – WordPress Plugin Tutorial

WordPress Settings API

In our last tutorial, we created a functional WordPress plugin using the WordPress settings API. A cool feature that WordPress allows us to do is do some validating of our own. You may have an input field where you’ll only accept non numeric characters. You may want to strip out a certain word. WordPress does some validating, but you may …

Read More »

WordPress Settings API Part 2 – WordPress Plugin Tutorial

WordPress Settings API

In our previous tutorial, I explained what the settings API is and how useful it is. I also  gave some code to help us get started. In this part, we’ll be discussing how to use the WordPress Settings API with the same plugin we crated in our last tutorial. We’ll mainly be working in our display-admin.inc.php file for this tutorial. …

Read More »

WordPress URL Functions – WordPress Plugin Tutorial

WordPress URL Functions

We just recently learned about the plugins_url() function and how handy it can be when we need to grab files from our own plugin. There are other WordPress URL functions which will be quite handy. Let’s create a new plugin.  Every time we create a new plugin, it’ll be based off the template plugin. So, I won’t be saying to copy …

Read More »

WordPress Plugin Path – WordPress Plugin Tutorial

WordPress Plugin Path

There will be times when you’ll want to grab the path to your plugin to grab an image or any file related to your plugin that you want loaded on the page. So, we’ll be learning a simple function that’ll help us do so. To grab a WordPress plugin path we use the plugins_url() function. Setting Up Alright, same as …

Read More »