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

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

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

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

How to Show Different Themes to Logged in Users in WordPress - How to Show Different Themes to Logged-in Users in WordPress

How to Show Different Themes to Logged-in Users in WordPress

In this example, we’ll use the is_user_logged_in() to display a different theme on our website for visitors: if(is_user_logged_in()) { function wpxss_set_my_custom_theme() { //replace your theme name here return ‘your-theme-name’; } add_filter( ‘template’, ‘wpxss_set_my_custom_theme’ ); add_filter( ‘stylesheet’, ‘wpxss_set_my_custom_theme’ ); } else { // leave the default theme active for visitors } The template and stylesheet filters are responsible to select the activated … Read more

WordPress Plugin and Theme Code Refactoring - WordPress Plugin and Theme Code Refactoring

WordPress Plugin and Theme Code Refactoring

Code refactoring is the process of restructuring existing code without changing its behavior. This is often done to improve the readability, maintainability, and performance of the code. In the context of WordPress plugins and themes, code refactoring might involve reorganizing code into smaller functions, renaming variables and functions to be more descriptive, or simplifying complex … Read more

Display visitor IP address without any WordPress plugin - Display visitor IP address without any plugin

Display visitor IP address without any plugin

Here is how you can create a WordPress plugin with a shortcode to display the user’s IP address: <?php /* * Plugin Name: IP * Plugin URI: https://wpxss.com/application/application/ip * Description: Provides a shortcode to display the user’s IP address. * Version: 1.0 * Author: Stefan Pejcic * Author URI: https://pejcic.rs */ function ip_shortcode( $atts ) … Read more

Display Slack status on WordPress - Display Slack status on WordPress

Display Slack status on WordPress

Here is a simple WordPress plugin that will display your current Slack status: 🔴 Offline or 🟢 Online Note: To use the Slack API, you will need to create a Slack app and obtain an API token. You can find more information on how to do this in the Slack API documentation: https://api.slack.com/authentication/token-types#bot. Generate API … Read more