Want to shorten your WordPress Code, use wp_list_pluck. It’s an amazing function!

If you have ever developed a WordPress Theme or Plugin, I am sure you must have dealt with Queries and Objects. A lot of Information needs to be extracted from these objects to use them in Themes/Plugins. To extract this information, the go-to weapon in PHP is the foreach tool. Every value of an object can… Continue reading Want to shorten your WordPress Code, use wp_list_pluck. It’s an amazing function!

Creating a Drag-and-Drop Custom Control for Customizer – WordPress

A drag-and-drop feature is needed in the Customizer to take theme customizations to the next level. I had been searching through the Web for anything I can find regarding this. The Default Controls in Customizer, including the Widget Panel and the Menu Panel, employ Javascript in a big way but were not exactly was I… Continue reading Creating a Drag-and-Drop Custom Control for Customizer – WordPress

How to Show all the categories in which an Author has Posts – WordPress

This was a problem I came across when I was preparing an author page for a client. They wanted to show all the categories for which a certain user had written posts. For example, if there are 5 categories – A, B, C, D and E, and the user had created posts for categories B and… Continue reading How to Show all the categories in which an Author has Posts – WordPress

Difference between Categories and Taxonomies in WordPress

If you have ever stepped foot in the realm of WordPress, you might have come across the terms ‘Category’ and ‘Taxonomy’. Category is a pretty straightforward term and is pretty clear to the user. Users create posts and group them in different Categories. But the term taxonomy is a bit baffling for a novice user.… Continue reading Difference between Categories and Taxonomies in WordPress