Переглянути джерело

Update library/custom-post-type.php

added lines to show the columns for the custom taxonomies. read that it's new to wordpress 3.5
felixhirschfeld 13 роки тому
батько
коміт
fcbbd96d8f
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      library/custom-post-type.php

+ 3 - 1
library/custom-post-type.php

@@ -83,6 +83,7 @@ function custom_post_example() {
     			'add_new_item' => __( 'Add New Custom Category', 'bonestheme' ), /* add new title for taxonomy */
     			'new_item_name' => __( 'New Custom Category Name', 'bonestheme' ) /* name title for taxonomy */
     		),
+    		'show_admin_column' => true, 
     		'show_ui' => true,
     		'query_var' => true,
     		'rewrite' => array( 'slug' => 'custom-slug' ),
@@ -105,6 +106,7 @@ function custom_post_example() {
     			'add_new_item' => __( 'Add New Custom Tag', 'bonestheme' ), /* add new title for taxonomy */
     			'new_item_name' => __( 'New Custom Tag Name', 'bonestheme' ) /* name title for taxonomy */
     		),
+    		'show_admin_column' => true,
     		'show_ui' => true,
     		'query_var' => true,
     	)
@@ -117,4 +119,4 @@ function custom_post_example() {
     */
 	
 
-?>
+?>