WooCommerce products don’t have authors because the plugin developers think this is irrelevant. But a site may need this feature sometimes. The code snippet shared here helps bring back the feature to allow author assignment in the product edit area.
WordPress is by far the most popular content management system in the world. So, naturally, I love it and have quite a bit to say about it. My WordPress posts may be slightly biased towards code hacks (as opposed to simpler configuration tweaks), but well, I'm a software guy... So, no apologies.
The regular plugin-based methods for noindexing pages may not work for files and the question becomes: How do we hide (noindex) files in WordPress from search engines? In this article, I explain a solution to this problem and I demonstrate with live example files how you can hide (noindex) other types of media like PDF and Excel files in WordPress.
As of PHP 7.2 create_function() has been deprecated because of its usage of eval() – which in itself is a security hole. Even though applications that use create_function() may still work, you should replace it with an anonymous function instead.
Most webmasters know that caching is important for page speed. But not a lot is said about cache warming which is just as important. Here’s how to warm up your site cache by crawling your sitemap using cURL. The code can be run from a Linux Cron job.
Do you have guest writers on your WordPress site? If so, they’re most likely set to the contributor role. The problem with the default contributor role however, is that it does not allow the contributors to upload images or any other kind of media. This means they would have to write text only articles or contact you first if they must use images. This article discusses two ways you can get around this limitation without needing to promote the contributors to higher privileges.
Good WordPress blogging is not about mass production of mediocre articles. Nor is it simply writing about things you love. Use these detailed guidelines as a starting point in proofing and improving your new posts. The checklist touches on various parts of a blog post – content, title, formatting, hyperlinks and URL structure.