The Right Way to Disable Search Indexing for WordPress website - The Right Way to Disable Search Indexing for WordPress website

The Right Way to Disable Search Indexing for WordPress website

Preventing the site from being indexed by search engines is a feature that is often used when building a site for a client because we don’t want Google to index it until it is ready. Preventing indexing in this case is necessary because the site is in the development phase and the links of the … Read more

How to Automatically Create Post Tags from Post Title - How to Automatically Create Post Tags from Post Title

How to Automatically Create Post Tags from Post Title

Here is a simple WordPress plugin that will automatically add tags from the post title when saving posts. To use this plugin, simply copy and paste the code into a new file and save it as auto-tag.php in the wp-content/plugins directory of your WordPress site. Then, go to the Plugins page in the WordPress admin … Read more

Bulk Delete Millions of WooCommerce Products using SQL - 🗑️ Bulk Delete WooCommerce Products using SQL

🗑️ Bulk Delete WooCommerce Products using SQL

While building and testing WooCommerce addons, I find myself in need of quickly deleting all WooCommerce products from the database. WPCLI is the easiest way to go, as you can achieve the desired results via a single line. NOTE:  if your database prefix isn’t the default wp_, you’ll need to change it with your actual database … Read more

Bulk Delete Millions of WooCommerce Products using WP CLI - 🗑️ Bulk Delete WooCommerce Products with WP CLI

🗑️ Bulk Delete WooCommerce Products with WP CLI

Here are a few useful one-liners that you can use to quickly remove all WooCommerce products from your store. Another approach: PRO TIP:If you are considering deleting items in WooCommerce, please be aware that this action cannot be undone. Once you have deleted an item, it will be permanently gone from your store. Before taking … Read more

Error connecting to Mailchimp 0 cURL error 28 Failed to connect to us17.api .mailchimp.com port 443 after 7309 ms Couldnt connect to server - Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn't connect to server

Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn’t connect to server

Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn’t connect to server If none of the suggested solutions form this guide work: https://www.mc4wp.com/kb/solving-connectivity-issues/ Try to manually connect from your hosting server to the MailChimp server. First, try curl: if that fails, do traceroute (MTR) to see … Read more

is home vs is front page - is_home() vs is_front_page()

is_home() vs is_front_page()

is_home() and is_front_page() are both conditional tags in WordPress that can be used to check whether the currently viewed page is the site’s Home Page. However, they have slightly different meanings and use cases: What is the difference between is_home and is_front_page functions in WordPress? is_home() check if the current page is the main blog posts index (latest posts) … Read more

execute PHP code on your WordPress website - How to execute PHP code on your WordPress website

How to execute PHP code on your WordPress website

Since WordPress does not offer any possibility to add PHP code to the pages, you either have to customize your WordPress theme or use a plugin to execute PHP code on your WordPress website. You can also create your own plugin for it. Code Snippets WordPress Plugin With Code Snippets you can easily and clearly … Read more

Display a message to the targeted or random user ID - Display a message to the targeted User or random user ID

Display a message to the targeted User or random user ID

Here is a short snippet that you can use to programmatically display messages, for example, coupon codes to random (or targeted) users. We can either set the ID ourselves and store it in the $random_user_id variable Or for example, get random user IDs from the database: 💡 Note that if there are no users in … Read more

SEO Friendly WordPress Images with Auto Alt Tag plugin - SEO Friendly WordPress Images with Auto Alt Tag plugin

SEO Friendly WordPress Images with Auto Alt Tag plugin

Here is a simple WordPress plugin that will automatically add the post title as the alt tag to featured images and other images in the post content improving traffic from search engines. Simply install & activate the and it will automatically add Alt Tag to images in new posts. <?php /** * Plugin Name: Auto Alt … Read more