Managing WordPress with WP-CLI

Watch out! This tutorial is over 6 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

WP-CLI is a command line interface which allows the users to manage their WordPress web sites from the command prompt. Upgrades can be performed, backups can be generated, new posts can be published and most of the regular admin actions can be performed with a set of commands.

Continue reading

Make WordPress Remember A Login Forever

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

To keep track of who you are, WordPress uses cookies to store important information needed for it to work. Once you are logged into your WordPress account, information is stored to that little file which lets the system know the exact time when you got there and so it can identify you later on.

Continue reading

Anatomy of a WordPress Plugin

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

To learn the anatomy of a WordPress plugin and how plugin works, we will start looking at a simply plugin, a plugin that comes pre-install with WordPress.  It is the “Hello Dolly” plugin.  In fact this plugin is there to show you an example of how to do a WordPress plugin.

Continue reading

Play Background Audio on your WordPress website

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Sometimes it is nice to low ambient sound effects in the background of your website, to set a mood or for some other purpose. There are plenty of websites where you can download such files, or you can make your own. It’s best to go for something that seamlessy loops and is not to distracting to the user.

Continue reading

How to Create a List of Forbidden Words for WordPress Titles

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

If you manage a multi-author blog and want authors to avoid using certain words or phrases, then this will come in handy.  If an author has publishing rights, then the unwanted words can go live on your website. You can prevent this by taking away publishing privileges from users, but this means more work for you as you will have to review and publish posts yourself. So in this tutorial, we will show you how to create a list of forbidden words for WordPress titles.

Continue reading

How to Include Category and Subcategory in WordPress URLs

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

WordPress comes with two built-in taxonomies to sort your content. They are called categories and tags.

As you probably know, categories are typically used for more broader topics and can have subcategories.  However, if you are using the default WordPress URL structure, then your categories and subcategories are not included in the post URLs by default.

Continue reading

How to Link to External Links from the Post Title in WordPress

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Do you want to add an external link as post title in WordPress? Sometimes you may just want to share a link with your users. Instead of sending them to a post, you may want the post title to link to the other website. In this tutorial, we will show you how to link to external links from the post title in WordPress.

Continue reading