How to create a WordPress shortcode?

wordpress

WordPress Shortcodes allow you to extend the functionality of WordPress. Shortcodes are text within the square bracket. You can paste this shortcode on any page, post or widget. WordPress executes the PHP function associated with the shortcode and displays the result instead of the actual shortcode text. You can find more about WordPress shortcodes at … Read more

Best WordPress themes in 2021

Here are list of popular Free WordPress themes. Kadence Kadence is a multipurpose WordPress theme that is available for free download and also offers a pro version that opens up more possibilities. Themes offers lots of modification options and customization possibilities to explore your creative and create something amazing. Best Features Header and footer builder … Read more

How to Enable WordPress Toolkit in Cpanel/WHM

WordPress Toolkit

WordPress Toolkit in Cpanel/WHM allows you to easily install and manage WordPress websites. To install WordPress Toolkit, log in to WHM as user root. Go to WHM > WHM Marketplace On the Next page, you have the option to install WordPress Toolkit. Methood 2: Usuing command line To install WordPress Toolkit in Cpanel server, login … Read more

Stop xmlrpc.php attack on Cpanel Server

xmlrpc.php is part of wordpress. It is used for some API. This is used by hackers to bruteforce WordPress installations, that can cause high server load and slow server performance. On cpanel server, to prevent xmlrpc.php attack go to WHM > Service Configuration > Apache Configuration > Include Editor click on “Pre Main Include”, then … Read more

EasyEngine backup WordPress Database

EasyEngine WordPress Database Backup

EasyEngine run database of web sites in a Docker container. To take backup of MySQL database used by a WordPress website, you can run command ee shell DOMAIN_NAME –command=’wp db export’ This will create database backup on document root of the web site. Backup will be available in your web sites document root /opt/easyengine/sites/YOUR_DOMAIN.EXTN/app/htdocs/ You … Read more

WordPress use CDN with out plugin

wordpress

Content Devlivery Network (CDN) allow your web site to serve images from another domain or a sub domain. This speed up web site as your web server don’t need to serve images. Also browsers have a limit on number of parallel downloads from same domain. Having images on a differnt domain bypass this limitation of … Read more

WordPress Avada theme load fontawesome from old site

WordPress Avada theme icon missing

I have migrated a web site using Avada WordPress theme. Once site is migrated, i edited wp-config.php file and added following to avoid site getting redirected to old website url. define(‘WP_HOME’,’https://www.newurl.com’); define(‘WP_SITEURL’,’https://www.newurl.com’); Now site works, but some of the resources are loaded from OLD site url, this breaks some of the icons. On Browser Developer … Read more

WordPress debug

wordpress

If you have a wordpress web site that give blank screen, you can add following to wp-config.php to enable displaying errors. This should be added above line /* That’s all, stop editing! Happy blogging. */^M https://wordpress.org/plugins/query-monitor/https://wordpress.org/plugins/debug-bar/

Ubuntu Apache Setup for WordPress

wordpress

On a Fresh Ubuntu 18.04 server, run following commands to setup Apache, PHP and MySQL needed for WordPress installation. You can go to each file and manually run the commands if you want to see what commands are executed. wget https://raw.githubusercontent.com/serverok/server-setup/master/ubuntu/1-basic-tools.sh wget https://raw.githubusercontent.com/serverok/server-setup/master/ubuntu/2-apache-php-mysql.sh wget https://raw.githubusercontent.com/serverok/server-setup/master/install/update-php-ini.sh bash ./1-basic-tools.sh bash ./2-apache-php-mysql.sh bash ./update-php-ini.sh At this stage, you … Read more

Install WordPress in Kubernetes

To install WordPress in Kubernetes, you need to install helm package manager. Now run helm install stable/wordpress After the helm chart is run, you will get commands to get login for WordPress admin area. Here is services it create boby@sok-01:~$ kubectl get service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.39.240.1 443/TCP 34m whopping-labradoodle-mariadb … Read more

WordPress Backup and Migration Plugins

wordpress

Migrate Guru: Migrate & Clone WordPress Free This plugin allow you to transfer your wordpress web site to another hosting for free. It support sites upto 200 GB in size. Use BlogVault to do the transfer. https://wordpress.org/plugins/migrate-guru/ All-in-One WP Migration This free plugin allow you to backup and restore your wordpress site. Free version support … Read more