Use mysql2date to convert date string obtained from the database into a readable date

Instruction: Parameter PARAMETER TYPE DESCRIPTION DEFAULT REQUIRED $format string Output can be PHP date format or Unix timestamp. no yes $date string mysql2date() only recognizes “Ymd H:i:s” format, so the original timestamp string needs to be converted to this format. no yes $translate boolean If true, the specified date and format string will be passed … Read more

How to display user roles in the WordPress comments

This is another neat feature that I needed but didn’t really want to use another plugin to accomplish it. To display user roles inside WordPress comments like on the image above 👆 use the following code snippet:

How to change domain name for a WordPress website (5 ways)

Want to change the domain name for your WordPress website? No problem, in this guide We’ll walk you through 5 different methods to change the domain name for a WordPress website from cPanel PHPMyAdmin. Before following this guide make sure you’ve down the following: registered the desired domain name and pointed it towards your hosting … Read more

💡 How to create a Custom WordPress Single Post Template

Before we get to the technical stuff, I highly recommend creating a Child theme first prior to any changes. Step 1. Open up your theme’s folder and copy single.php file to something different like awesome-custom-template.php That’s it! Congrats, you’ve just created your very first custom WordPress single post template, now it’s time to modify it as you … Read more

How to delete WordPress malware ($_REQUEST[‘action’]) && isset($_REQUEST[‘password’]) &&

This type of malware causes unwanted redirects to third-party websites, and is commonly found inside nulled theme’s functions.php file Source code: How to remove this WordPress redirects? Delete wp-vcd.php and class.wp.php files from wp-include folder Edit post.php and delete the malicious code Edit your theme’s functions.php file, and delete the above code ☝️ UPDATE: I recommend reinstalling WordPress as instructed here: How to … Read more