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:

$testimonials = array(
	'post_type' => 'projects',
	'posts_per_page' => 4,
	'meta_key' => 'testimonial',
	'meta_value' => array(''),
	'meta_compare' => 'NOT IN'
);

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”