WooCommerce introduced a function which makes things much more elegant and simple, and gets rid of
global $woocommerce and
$aUrl when getting page URLs.
I sometimes find inconvenient the way WordPress trims the excerpt by default, which is by number of words. The number of characters in a word varies so greatly, that trimming by number of words makes the excerpt’s length horribly inconsistent.
Social media sharing buttons are a must have, especially for a blog. Sure, the first solution that comes to mind for adding such buttons is a plugin, and there are plenty of free and premium plugins to choose from. But if you are picky like us, you want both aesthetics and performance. So what do you do when […]
“Related posts” section contains an automated selection of posts related to the article you are currently reading, and it’s one of the best possible additions to your website. The multiple advantages of such a section make it a must-have:
WordPress wp_nav_menu() function has lots of useful arguments for customizing your menu, but it’s missing an essential one: a menu item separator. For example, if you want to add a | (vertical slash) or a · (middot), or any other separator of your choice, the ideal solution would be to add it as a function argument like
'item_sep' => '·'