Crosswinds Blocks — Custom Taxonomies

  1. Home
  2. Article
  3. Crosswinds Blocks — Custom Taxonomies

Currently Crosswinds Blocks comes with custom taxonomies that you can enable or disable. If you’re creating a theme and want a custom taxonomy to be enabled, you can use the following code to do so.

<?php
add_filter( crosswinds_blocks_enable_{taxonomy-slug}_taxonomy, function(){
    return true;
} );
?>

Taxonomies

  • Project Category
    • Slug: project-category
    • Creates categories for projects, similar to posts.
  • Project Tag
    • Slug: project-tag
    • Creates tags for projects, similar to posts.

Tags: