Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.
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.
A favicon (favorites icon) is a small image (usually a 16 x 16 icon) that sits besides the title of your webpage as shown in a browser tab. Favicons are a must for any proper and complete website because they are used by browsers in lots of places (like tabs and bookmarks) and they help your returning users to easily identify your website visually.
WordPress on Amazon EC2 makes a very flexible and powerful web development combo. WordPress is a great choice because it has a huge theme and plugin ecosystem, and it is very user-friendly (non-technical people can use it comfortably). Amazon EC2 is highly scalable and practically unlimited and Amazon Web Services (AWS) provides a whole suite of website and application management tools that most people find useful at one point or another.
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.
WooCommerce archives (shop, categories, and tag pages) don’t display short descriptions by default. If you want this feature, customize your theme by adding this line of code.
WP-Cron is how WordPress handles time-based job scheduling on sites. Sort of like the Linux cron utility. But WP-Cron could be very resource intensive since it executes on every page load. I share some insights/solutions to the problem in this post.