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 […]
Web
Articles and tips about web programming: PHP, WordPress, MySQL and other stuff
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, […]
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.
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.
Genesis for WordPress: display post meta before the title
How to move the meta data of a post before the title of the post in a WordPress site with a Genesis child theme.
Genesis: how to customize the 404 page
How to customize the 404 page in a Genesis child theme: the Genesis filters to use and two examples of code to create your own custom 404 page.