Yoast SEO sitemaps on large wordpress site

WordPress

when using Yoast SEO plguin on large wordpress site, sitemap can fail to generate. To fix this, you can allow more memory for sitemap pages, for this add following code in your wp-config.php file. Another option is to limit number of urls per sitemap file. To limit 200 urls per sitemap file, add follwing code … Read more

How to hide a WordPress Plugin

WordPress

When you develop a WordPress website, you may need to hide a plugin, so customers won’t access it or change its settings. In this blog post, I will show how to hide the WPGraphQL plugin from the plugins page. Edit functions.php inside your themes folder, add the following code Now the plugin will not be … Read more

WPScan WordPress Security Scanner

WordPress

WPScan is a free, open-source WordPress security scanner developed by a team of security professionals. It is designed to help website owners and security experts assess the security of their WordPress-powered websites The tool is written in Ruby and can be used to detect a wide range of vulnerabilities, including outdated WordPress core, plugin, and … Read more

Wordfence CLI

WordPress

Wordfence CLI is an open-source, high-performance malware and vulnerability scanner designed for the Linux command line environment. This tool is built to provide site owners, security administrators, operations teams, and security-focused organizations with a powerful and flexible solution for detecting malware and WordPress vulnerabilities at scale. Wordfense CLI require Python 3.8 or newer installed on your server. To install Wordfence CLI, run the command For Ubuntu/Debian: For RHEL baed … Read more

WordPress Redirect Visitor On 404 Error

WordPress

WordPress shows a 404 page when visitor navigate to a non existent page. To redirect visitor to a specific page, say home page when visiting non existent page, edit functions.php file in your themes folder, then add following code to it. function redirect_404_to_page() { if( is_404() ) { header( “Location: https://your-domain.tld/page/” , true, 404); exit; … Read more

How to Speed Up Your WordPress Site

WordPress

Getting your site to load faster is very important. Bounce rate (visitors leaving your website) on your website increases as load time increases. Many WordPress themes, and plugins add extra javascript/css resources to your page, so each page has to load these resources, making the site slow. It is better to use minimum plugins required. … Read more

Find WordPress Version from command line

WordPress

To find the version of WordPress, you can check the file wp-includes/version.php Inside the file look for variable $wp_version You can do this with the grep command grep wp_version wp-includes/version.php Using WP CLI You can use WordPress CLI to find the version of WordPress with the command wp core version Back to WordPress

How to fix WordPress 404 Error htaccess

WordPress

If your WordPress sites shows 404 page when accessing URLs, this is because .htaccess file is missing. WordPress uses .htaccess file to generate SEO-friendly URLs when using Apache or LiteSpeed webserver. To fix the 404 error on WordPress, create a file with the name .htaccess and copy the following content. If WordPress is installed on … Read more

CURL ERROR 7 could not establish a secure connection to WordPress.org

WordPress

On a WordPress website hosted on a CentOS server, I got the following error on the header of the website. Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. … Read more