What values are expected for [ic_add_posts tax='taxonomy' term='term']
-
In the code below what value do I use for ‘taxonomy’ in tax=’taxonomy’? Can you define what ‘term’ means? Can’t seem to figure out the right combination of values to display a custom post.
add_action( 'init', 'chamber_create_taxonomies', 0 ); function chamber_create_taxonomies () { // Event Types - hierarchical $event_labels = array( 'name' => _x('Event type', 'post type general name'), 'singular_name' => _x('Event type', 'post type singular name'), 'search_items' => __('Search in event type'), 'all_items' => __('All event types'), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __('Edit event type'), 'update_item' => __('Update event type'), 'add_new_item' => __('Add new event type' ), 'new_item_name' => __('New event type'), 'menu_name' => __('Event type'), ); register_taxonomy('event-type', 'events', array( 'hierarchical' => true, 'labels' => $event_labels, 'show_ui' => true, 'query_var' => true, 'rewrite' => array('slug' => 'event-type' ) ));
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘What values are expected for [ic_add_posts tax='taxonomy' term='term']’ is closed to new replies.