فهرست منبع

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() {
     */
 	
 
-?>
+?>