Create a plugin | Add a featured image to a post
How to create a plugin and add a featured image to a post. Creating a plugin can seem intimidating but with this guide, you will be creating a plugin in no time. We will code a plugin that you can put to use in just a few easy steps.
Step 1
Locate your “plugins” folder. Inside the “plugins” folder, create a folder labelled “add-featured-image”
Step 2
Create 2 files inside the “add-featured-image” folder as follows;
- add-featured-image.php
- style.css
Step 3
Add the following code to the “add-featured-image.php” file and the code below this window to the “style.css” file;
Step 4
Activate your plugin. That’s it, your done.
Leave a Reply