• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SomeDevTips

Tips and code examples for software developers

  • WordPress
  • PHP

Web

Articles and tips about web programming: PHP, WordPress, MySQL and other stuff

WordPress: let an author manage categories and tags

1 May 2022. Categories: Web| WordPress

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

30 April 2022. Categories: PHP| Web| WordPress

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

14 March 2020. Categories: 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

28 January 2020. Categories: WordPress

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

25 August 2019. Categories: Web

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

23 August 2019. Categories: PHP

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

16 August 2019. Categories: WordPress

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?

27 July 2019. Categories: PHP| Web

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

13 July 2019. Categories: WordPress

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

6 July 2019. Categories: WordPress

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.

Primary Sidebar

Recent articles

  • WordPress: let an author manage categories and tags
  • A local development environment for web applications
  • Stacks and queues: features
  • A simple backup script for WordPress
  • Git: how to change the remote repository of a project

Categories

  • Algorithms and data structures
  • PHP
  • Version control
  • Web
  • WordPress

© Copyright 2019-2023 · Somedevtips