Making the most of WordPress
The Verdict on Gutenberg
For the most part, I like Gutenberg. Seriously. Still, I see a couple of issues in the underlying philosophy behind anything like Gutenberg that may create future problems. Gutenberg's official mission statement is to "go beyond the post into page templates and ultimately, full-site customization." In practice, Gutenberg was developed to prevent WordPress from losing users to services like Medium and Squarespace or page builders like Elementor. This is a noble and necessary goal, but one that can potentially backfire.
My issues with Gutenberg are the same ones I have with desktop office suites, "user-styled content" in GeoCities, and the <blink>
HTML tags. First, mixing content and styling in one interface can make content (especially web content) much less portable to other publishing systems in the long run. Themes should be compatible with open, platform-independent standards, not with any one editor. Second, Gutenberg's "block-based editing" is as easy to use as it is to misuse (the Internet contains tens of millions of really embarrassing PowerPoint slideshows and MySpace pages).
However, if this frees users from Facebook, Medium, and the like, more power to Gutenberg. Just be very, very careful with it and avoid bloated themes!
Advanced Topics
WordPress 5 includes three often ignored tools that make it even more powerful and flexible. First, Tools | Import (Figure 8) lists all the plugins available to semi-automatically import content from other WordPress blogs or other sources. While I haven't tested all of these options, some of these plugins have saved me a lot of time.
An even more powerful WordPress tool is WP-CLI [7], the command-line interface for WordPress, which I have been using since 2011 [8]. Technically speaking, WP-CLI is a PHP command-line utility that works with any version of WordPress 4 and 5. Installing it only takes a couple of minutes at a Linux prompt, and it can be a timesaver. The WP-CLI commands are simple, well-documented, and can do anything from installing WordPress and WordPress plugins to publishing posts, moderating comments, cleaning the WordPress cache, and managing menus. Inside a shell script, WP-CLI can clone a fully customized WordPress site or import thousands of posts from any database or set of text files while you take a nap. Try it!
The final ignored WordPress tool is a plugin that does something that might seem like pure idiocy: Using WordPress to generate a completely static website!
The first websites were nothing but collections of static images and text files in HTML format. Consequently, every visitor saw exactly the same pages as everybody else and could not interact with the website with the exception of basic forms or JavaScript-based menus.
Dynamic websites like WordPress changed all that, because they are written in PHP or similar languages, which are executed by the web server every time a user requests a page. This architecture is what lets us post comments, fill forms, make purchases, browse images, complete surveys, and so on.
However, a drawback to dynamic websites is speed: Fast themes and plugins cannot do miracles. Unless you spend a lot of money on hosting, dynamic websites can be much slower than static ones, even if the latter are on free hosting accounts. Even more important is maintenance: It may take just a few minutes per week, on average, but if you don't always keep your WordPress installation as clean and up-to-date as possible, sooner or later it will stop working or be hacked.
While the money and/or time is justified in most scenarios, there are a couple of surprisingly common ones where a static site is preferable.
The first one is when your WordPress website reaches its end of life (usually because a project finishes). At that point, you may want the website to remain online, even if you are sure that nothing will be added or modified. In this case, continuing to run WordPress is both a waste of resources and a guarantee that sooner or later it will be hacked.
The other reason to make static versions of your WordPress website is if you want WordPress for yourself and not your users. When you want WordPress's themes, plugins, dashboard, and editor, but do not need user comments or any other interaction (search fields, dynamic calendars). In this case, you can:
- Install and run WordPress on your laptop with the WP2Static [9] plugin, which works better for this kind of job than web mirroring tools like
wget
. - Disable anything that may not work as a static copy (sliders, search fields, etc.).
- Run the plugin every time you add or modify your content or theme.
- Automatically copy the static version to your static hosting account, with rsync or similar tools.
- Enjoy your website made with all the power of WordPress, but much faster and more resistant to attacks.
Keep It Simple
Less is more and lasts longer, so use as few plugins as possible and the cleanest (but mobile-friendly) theme you can tolerate. Follow that rule, and WordPress 5 will give you, and all your website visitors, plenty of satisfaction.
Infos
- WordPress: https://wordpress.org
- 25 Astonishing WordPress Facts: https://www.whoishostingthis.com/compare/wordpress/stats/
- The WordPress blog used in this tutorial belongs to my son.
- Let's Encrypt: https://letsencrypt.org
- Using permalinks: https://wordpress.org/support/article/using-permalinks/
- WordPress 5 Ultimate Cheat Sheet: https://www.codeinwp.com/blog/wordpress-5-0-cheat-sheet/
- WP-CLI: https://wp-cli.org/
- How to post content to a WordPress blog from the command line: http://freesoftware.zona-m.net/how-to-post-content-to-a-wordpress-blog-from-the-command-line/
- WP2Static: https://wordpress.org/plugins/static-html-output-plugin/
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.