WordPress: Add items to the ‘At a glance’ widget
The WordPress dashboard includes a handy widget that displays some brief information about your site at a glance – this snippet will show you how to add your own custom post types to that widget.
Community Strategy & Open Source
The WordPress dashboard includes a handy widget that displays some brief information about your site at a glance – this snippet will show you how to add your own custom post types to that widget.
Having a drop down menu for month selection is a relatively common need, but it can be a pain to write from scratch each time. Here’s a short snippet that will generate a select input (drop down menu) for all 12 months of the year – the option values will be the month numbers with leading zeros.