In this article I want to explain how in WordPress you can let an author manage categories and tags of posts. By default the WordPress users with a role of type author cannot manage the categories and the tags of the posts. This means that in the WordPress backend, under Posts, this type of user […]
A local development environment for web applications
I created a LAMP (Linux-Apache-MySQL-PHP) local development environment you can use to develop your web applications. It is a docker environment. Docker allows you to separate your development environment from your host computer. The web server and the database server are not installed on your host computer. They run in isolation inside your docker containers, […]
Stacks and queues: features
Stacks and queues are two fundamental data structures in computer science. They are used for manipulating collections of objects. This article aims at giving a general overview of stacks and queues and helping you to understand what they are. Main operations Let’s see what are the operations supported by these two data structures. The two […]
A simple backup script for WordPress
I created a bash script to create a quick backup of your WordPress installation. This is a script I am using for some years and I decided to make it public so that it can be useful to someone of you.
Git: how to change the remote repository of a project
Here you will find the explanation and the commands to use to update the remote repository of a git project. This is useful if your git server is changed for any reason.
Genesis for WordPress: how to customize the post info
How to customize the post info area of a Genesis theme: this article explains what is the post info area, how you can customize it and where you can find the reference information you need.
MySQL procedure with array parameter
I explain how you can implement a MySQL procedure with an array parameter, even though this is not supported by MySQL. The workaround is to use a VARCHAR parameter and parse it to extract the array values. I give you an example of code.
Sorting a PHP array: all the ways to do it
This article explains all the ways to sort a PHP array. I start with the base sort function, then I explain the possible variations of that basic function. Then I talk about the natural sort, the user-defined sort and the sort options. Finally I show you some pitfalls you should pay attention to.
Customize WordPress tag cloud of your site
This article explains how you can customize the tag cloud of your WordPress site. Some code examples, the technical details and links to the filter documentation.
Merge two PHP arrays: use array_merge or + operator?
How you can merge two PHP arrays: with the array_merge function or the + operator. These two methods can lead to very different results, depending on the the keys of the two arrays, if they are strings or numbers. Understanding the differences is very important to avoid unexpected results. With examples.