If you need to be able to display a custom message on your registration page, here is a super simple solution to do it. Just read on and enjoy!
If you need to be able to display a custom message on your registration page, here is a super simple solution to do it. Just read on and enjoy!
When coding or styling a theme, it can be very useful to be able to get the slug of the current post or page, for example to create a css class. Here’s an easy function to get the slug from the current post or page.
In order to display your categories in a dropdown menu, WordPress provide the wp_dropdown_categories() function. But if you want to display your tags in a dropdown as well, there’s no built in function. Let’s use wp_dropdown_categories() and modify it in order to be able to display tags in a dropdown menu.
In some cases, you may not need or want that people who comment your posts can leave their website url. Here is a simple code snippet to remove the url field from WordPress comment form.
WordPress have a built-in widget that allows you to display any RSS feed on your blog. Although this widget is great, sometimes you may wish it refresh more often. Here is a simple solution to modify the widget refresh rate.
On your WordPress blog, when an item like a post or comment is deleted, it goes in Trash instead of being permanently removed. Here is a super simple code snippet to tell WordPress to automatically empty the trash everydays.
Do you want to be able to use your gravatar as a favicon on your WordPress blog? That’s pretty easy to achieve with this trick. Enjoy!