Firebase CLI: How to Change Project

December 17, 2022 Pennywise

When working with Firebase CLI, you can switch between projects by using the firebase use command, like this: To see the ids of your Firebase projects, execute the following command: You’ll get results like this: That’s…

WordPress: Passing Params to get_template_part()

December 17, 2022 A Goodman

When using the get_template_part function in WordPress, you can pass parameters to it as shown below: Then you can retrieve the passed variables in the template file like this: In this case, $args is a reserved…

How to insert 4K images in your WordPress posts

December 21, 2022 Hadrianus

After editing your php.ini file (setting upload_max_filesize = 100M or another big number), you can upload big images but still can not insert them into your posts. Even if you select Full Size from the image…

WordPress: Show related posts by tags

October 21, 2022 Napoleon

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…

Completely remove Let’s Encrypt SSL cert(s) of a domain

February 23, 2022 Napoleon

In order to completely remove Let’s Encrypt SST/TLS certificates of a domain and all of its subdomains, just use SSH to connect to your server and run: Simple as that. Further reading: AWS Lightsail: Let’s Encrypt…

[Cloudflare] Fix errors when renewing Let’s encrypt cert

February 23, 2022 Hadrianus

If you’re using both Cloudflare and Let’s Encrypt for your website, you may face an error when renewing your cert. The error message is similar to this: Don’t be panic. This article will walk you through…

How to enable HTTP/3 for a website on Cloudflare

February 23, 2022 A Goodman

This article shows you how to enable HTTP/3 for a website that uses Cloudflare. Why HTTP/3? HTTP/3 is the third major version of the Hypertext Transfer Protocol that will replace HTTP and HTTP/2 in the future….

AWS Lightsail: Let’s Encrypt error

February 23, 2022 A Goodman

When setting up a server with AWS Lightsail, you might run into a big problem. Issue After installing Let’s Encrypt without errors, you could not access your website with the https URL. Don’t be panic. This…

5 popular websites built with WordPress (2022)

October 21, 2022 Hadrianus

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

October 21, 2022 A 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: Further reading:…

PHP array_filter() examples

October 21, 2022 A 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. Syntax: The flag argument is optional. Its default value is 0 and…

PHP array_slice examples

October 21, 2022 A Goodman

The array_slice() function (available since PHP 4) 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 the start and length…

1 2