WordPress Archives

Tips and Tricks on WordPress usage and development. I am very passionate about WordPress, but it doesn’t work just by itself – it needs a rich environment to live and breathe in.

If you’re after theme and plugin alterations, we have a category for that.

How to create Custom Post Types in WordPress

I’ve been working on a game database that’s powered by a vanilla WordPress instance. For the project it made sense to create a new post type (game), as well as a custom taxonomy (platform). I didn’t want to use a plugin and instead opted to create the new post type as part of the child theme’s function.php file.

Here’s how I did it.

Read more

Shoosh, Jetpack!

I wrote a new plugin based on code by Matt Medeiro that I’ve mentioned in a previous article. This is a super quick solution to get rid of any and all Jetpack Nags at the top of your Admin Interface. I was working on a site that didn’t have a Child Theme, so it wasn’t … Read more

How to add Category Descriptions in TwentyNineteen

Some themes implement the WordPress Category Descriptions, others do not. Often they’re not necessary, but sometimes they are. Here’s how to add them to the TentyNineteen theme. Make a copy of the archive.php file and call it category.php. There’s a block of comments at the top, I recommend changing the description to remind you of … Read more

How to tweak the featured image filter in TwentyNineteen

Last year’s WordPress TwentyNineteen theme does nice things with the featured image in more than one level. The default wasn’t exactly what I was looking for though and some tweaks were necessary for me to feel happier. In particular I felt that the way featured images are displayed needed an adjustment. There are three areas … Read more

How bring back the missing File Editor in WordPress

Every once in a while, users notice that the File Editor in WordPress may disappear. This has been happening for many years, and although I’ve read about this issue, it’s never happened to me – until very recently. I’m talking about the options under Appearance – Theme Editor and Plugins – Plugin Editor. When these … Read more

How to add File Upload Capabilities to the Contributor Role in WordPress

I never noticed this before, but it appears that the Contributor Role in WordPress does not come with ability to upload files to an instance. That’s slightly weird, given that most users will probably assign this role to users who shall be able to write content for a site, and with good content inevitably come images in this day and age.

According to WordPress, the roles included with WordPress are mere examples or “capability collections” so to speak, and we’re free to create our own, or add/remove capabilities from any role if we so desire. I did some digging and found out how that the add_cap() and remove_cap() functions do just that.

In this article I’ll show you how to add the upload_files() capability to the Contributor Role, without the need for yet another plugin.

Read more