WP CLI Tips and Tricks - WP-CLI Tips and Tricks

WP-CLI Tips and Tricks

Here are a few WP-CLI tricks and tips that might be useful: Aliases Use aliases to make commands shorter and easier to remember. You can use the –alias=<alias> flag when defining a command to specify a shorter alias for the command. For example, if you use a command wp my-command: you could define a command … Read full article →

Display all Active WordPress plugins - Display all Active WordPress plugins

Display all Active WordPress plugins

Here is a simple WordPress plugin that will create a [activeplugin] shortcode: Add it as plugin and activate, then add shortcode [activeplugins] anywhere on your website and it will display all active plugins:

Display the total number of posts in WordPress - Display the Total 🔢 Number of Posts in WordPress

Display the Total 🔢 Number of Posts in WordPress

Step 1. Add the following inside your theme functions.php file or create a new Child theme first and add the code to it: Step 2. Add the shortcode [total_posts] anywhere on the website where you want to display the total number of posts: And it will display the number. 🙂

move wp pages to doc root - How to move WordPress pages to the Domain Root

How to move WordPress pages to the Domain Root

I have a WordPress blog on pcelarstvopejcic.com/blog and a few pages that I would like to move to the domain document root, so that: pcelarstvopejcic.com/blog/contact becomes pcelarstvopejcic.com/contact pcelarstvopejcic.com/blog/shop becomes pcelarstvopejcic.com/shop So this way I only have one WP installation and blog posts would be accessible via pcelarstvopejcic.com/blog/POST and pages in pcelarstvopejcic.com/PAGE To do this, edit … Read full article →

max connections - ⚠️ User already has more than 'max_user_connections' active connections [✅ SOLVED]

⚠️ User already has more than ‘max_user_connections’ active connections [✅ SOLVED]

Noticed a lot of Crawler errors on the Google Adsense console: So I enabled the WP_DEBUG and run a stress test with vegeta on the website: the website became unavailable and the following error was shown: User already has more than ‘max_user_connections’ active connections This explains the errors in Google SC because the crawler most … Read full article →

Gel4y Mini Shell by Indonesian Darknet - Gel4y Mini Shell by Indonesian Darknet 🕵️

Gel4y Mini Shell by Indonesian Darknet 🕵️

Recently encountered a version of Gel4y Mini Shell that is not detectable by Imunify360 yet! Gel4y Mini Shell is a small PHP shell that has two notable features: 🔴 Compared to other PHP shells such as IDBTE4M BOT V87 Gel4y Mini Shell by Indonesian Darknet offers a lot fewer features: Source code: UPDATE: Imunify360 now … Read full article →

WordPress version usage statistics - WordPress version Usage Statistics UPDATED

WordPress version Usage Statistics UPDATED

This table displays the market share (in %) for each WordPress version of all the active WordPress websites on the internet. $(document).ready(function() { $.getJSON(‘https://api.wordpress.org/stats/wordpress/1.0/’) .done(function(resData) { var table_str = ‘ WordPress Version Usage (in %) ‘; $.each(resData, function(key, value){ table_str += ‘ ‘ + key + ‘ ‘ + value + ‘ ‘; }); table_str += … Read full article →

wordpress post vs page - What to use: WordPress Post vs. Page - 📝🆚📄

What to use: WordPress Post vs. Page – 📝🆚📄

Posts are articles listed in reverse chronological order that are easy to read, share or comment on. While Pages primarily include static information about your organization, products or services, etc., they don’t usually have comment areas and share links. Posts can be more easily organized and used to interact with your audience, whereas pages are mostly … Read full article →