Delete unused images in WordPress using WP CLI - Delete unused images in WordPress using WP CLI

Delete unused images in WordPress using WP CLI

This small script uses a for loop to delete one post ID at a time, it will go through the database and list all media files uploaded in the provided data range that are not used inside posts. Change the date range according to your needs.

How to remove meta generator tag from WordPress - How to remove meta generator tag from WordPress

How to remove meta generator tag from WordPress

WordPress has an HTML meta generation tag that shows that your website is running WordPress and which version exactly. If you right-click on this page and choose View Source, you can find this tag by searching for “generator” in the source code. You should see something similar to: <meta name=”generator” content=”WordPress 6.0.3″ /> This code … Read full article →

yoastseophp81 - Yoast SEO is (kind of) incompatible with PHP8

Yoast SEO is (kind of) incompatible with PHP8

Yoast SEO is compatible with PHP 8 and PHP 8.1 but the Composer that YoastSEO is using doesn’t yes support PHP 8.0 so you might experience problems when editing posts&pages in WordPress. According to this comment there are still 19 other PHP version incompatibilities remaining to be fixed. 😲 So turns out that YoastSEO is … Read full article →

no referer Error on LiteSpeed Cache Purge - no referer Error on LiteSpeed Cache Purge

no referer Error on LiteSpeed Cache Purge

When purging cache from the LiteSpeed Caching plugin the error no referer is shown and purging is not working. This error is caused by the Security Headers Referrer-Policy setting “no referer” on the server (or Cloudflare). The no-referrer value instructs the browser to never send the referer header with requests that are made from your site. This … Read full article →

WordPress Color Palette WPXSS Blog - WordPress Color Palette 🎨

WordPress Color Palette 🎨

This is the official WordPress Color Palette. Since WordPress 5.7 Themes and Plugin developers are encouraged to use this new color palette, for better consistency between their products and WordPress Core. Plugin authors that use the existing CSS Core classes should be all set up with the new color palette, as every Core class was updated accordingly. … Read full article →

How to Identify if My WordPress Website is Hacked - How to Identify if My WordPress Website is Hacked?

How to Identify if My WordPress Website is Hacked?

This is one of the most-asked questions that I get emailed from people that read some posts from my Types of WordPress Malware Attacks and What They Do series. 99% of the time website owners are the last ones to find out that their WordPress websites are hacked, after visitors, Google, website scanners, and their … Read full article →

wp xml to markdown - Convert WordPress to Markdown

Convert WordPress to Markdown

Export WordPress posts to XML an then convert it into Markdown files suitable for a static site generator such as Gridsome, Gatsby, Hugo, Jekyll, etc. Step 1. Export WordPress to XML Navigate to Tools > Export and Select “All Content” File will be saved as [website].WordPress. [DATE].xml Step 3. Install NodeJS & Git Make sure … Read full article →