WordPress adds a lot of CSS classes in nav menus. If you are a perfectionist, then here is a good way of cleaning up the sheer number of class names that are generated.
WordPress automatically outputs a lot of helpful CSS class names for menus. If you use the
wp_nav_menu()function to display your menus, as all good themes should do, you don't have to settle for just the default class names.
You can prevent WordPress users from being able to deactivate plugins by hiding the 'Deactivation' links.
WordPress must use plugins are plugins that are always loaded and cannot be deactivated within the WordPress admin.
Anytime you've written a custom plugin that isn't released on WordPress.org or modified a theme, it is best to disable updates for that specific theme or plugin.
WordPress will, by default, automatically update itself when there are security releases. It can also update themes and plugins automatically if necessary. From a security perspective, this is great. However, automatic updates can also present complications.
Learn to disable WordPress core, plugin and/or theme updates for specific users. Especially handy when you want to prevent clients from triggering updates willy-nilly.
The visual aspects of a site are important and many themes depend on the 'Featured Image' functionality in WordPress to provide a better visual experience. So, it only makes sense that you may want to consider requiring a featured image before a post can be published.
Taking a WordPress image URL and using it to get the attachment ID is a bit tricky. There are a lot of code samples out there that do this, but they all have problems to some degree or another. Pippin Williamson posted a very elegant solution based on comparing the URL to the guid in … Continue reading Get Attachment ID from a WordPress Image URL
Featured images are most commonly used to display an image alongside the excerpt for a post on a blog page. If your theme doesn't link the featured images to the post, can use this code to programmatically add the links.