How to Check if Meta Value Exist in WordPress Query

snippet, WordpressLeave a comment

On a loop that performs data from custom meta field, to check if the meta key has value or exist, we can use the following query:

The above code can be used in WordPress older than 3.5 but it still usable in the latest version of WP, currently 5.1.

How to Add SPF Record to Prevent Spamming and Spoofing

How To, SoftwareLeave a comment

Spamming is a super annoying issue, especially if you are worried about the misuse of your domain name by the spoofer. You didn’t send the email, but a program or script can easily add your email address to the “From” field so ordinary people will recognize this email is posted by you (which is you didn’t), at the end of the day, this will affect your domain reputation.

Continue reading “How to Add SPF Record to Prevent Spamming and Spoofing”

How To Update PHP 7.0 to PHP 7.2 on Debian Easily

Linux, PHPLeave a comment

More than a year a go, I wrote about how to upgrade PHP 5.6 to PHP 7.0.

Now, PHP 7.0 will reached the end of its critical support through December 2018. After that date PHP community will no longer provides support for bugs. Following to PHP 7.0, PHP 7.1 will be put under discontinued support next year.

Also, since dotdeb dropped support for PHP 7.1 and later so we will use another package provided by Ondřej Surý’s. Continue reading “How To Update PHP 7.0 to PHP 7.2 on Debian Easily”