Archive: Taxonomy


WP_Dropdown_Categories And Parent Optgroups

WP_Dropdown_Categories is a well used core WordPress function used to display or retrieve a dropdown list of categories as formatted HTML. It is highly customisable, with multiple settings for layout, category & taxonomy types etc. There is however no current method whereby top level parent categories can be set as non-selectable optgroup select options,...
Read More

WordPress: Term_Exists and Parent ID

I recently had an issue with a popular WordPress plugin when importing taxonomies into a custom post type. The plugin carried out a test to check if the taxonomy already exists. If so, then the post was attached to the existing term, if not then a new top level term was created and the...
Read More