How to insert 4K images in your WordPress posts

June 29, 2020 Linda Walker

After editing your php.ini file (some stuff similar to upload_max_filesize = 100M), you can upload big images but still can not insert them into your posts. Even if you select Full Size from the image size…

WordPress: Show related posts by tags

June 29, 2020 Ken Fisher

This article shows you how to display related posts by tags in WordPress. Place the following snippet in your single.php where you want the related posts to show up (a good spot is right below your…

5 popular websites built with WordPress (2020)

May 30, 2020 Linda Walker

WordPress is the most popular CMS on the planet, trusted and used by millions of people and companies around the world for nearly 20 years. Let’s have a look at some of the biggest websites using…

PHP array_push examples

May 23, 2020 Goodman

The array_push function in PHP pushes the input variables onto the end of the given array. Note that the input variables can be string, number, array… Example 1 Code: Output: Example 2 Code: Output:

PHP array_filter() examples

May 5, 2020 Goodman

The array_filter() function in PHP, as its name so precisely explains, is used to filter elements of an input array using a callback function. The flag argument is optional. Its default value is 0 and will…

PHP array_slice examples

May 5, 2020 Goodman

The array_slice() function (available in PHP 4, PHP 5, PHP 7) is used to extract a slice of a given array. It returns a new array that contains elements from the input array as specified by…

Xampp on Mac: Permission denied error fix

May 4, 2020 Goodman

After installing Xampp (even the latest version) on your Mac, you may face some errors related to permissions when working with files (uploading files, resizing images…). The most common output you could see will look like…

PHP: Generating a random number between Min and Max

May 3, 2020 Goodman

In order to generate a random number within a given range, you can use the rand() or the mt_rand() functions. They are both built-in features in PHP (4, 5, 7). Example: Note: mt_rand() is 4 times…

[PHP 7] Merging arrays with array_merge() and spread syntax

May 3, 2020 Goodman

In order to merge arrays in PHP, you can use the spread syntax (AKA argument unpacking, splat operator) or the array_merge() method. A few examples below will help you understand clearly. Notes: If the input arrays…

How to remove WordPress logo on the admin bar without plugins

January 27, 2020 Goodman

In order to remove the WordPress logo on the admin bar, just place the code snippet below into your functions.php: Simple as that ๐Ÿ™‚

How to disable post tag in WordPress

January 27, 2020 Goodman

You can easily disable post tag in WordPress by adding the code below into your functions.php: That’s it.