Create a custom taxonomy that will be used to create and filter markers in a Google Map
Here’s a fully working example to get you started. Register the “marker” taxonomy register_taxonomy( ‘marker’, ‘post’, array( ‘hierarchical’ => false, ‘update_count_callback’ => ‘_update_post_term_count’, ‘label’ => __( ‘Markers’, ‘textdomain’ ), ‘labels’ => array( ‘name’ => __( ‘Markers’, ‘textdomain’ ), ‘singular_name’ => __( ‘Marker’, ‘textdomain’ ), ‘menu_name’ => _x( ‘Markers’, ‘Admin menu name’, ‘textdomain’ ), ‘search_items’ => … Read more