How to change the title of manage_posts_custom_column
-
Hi,
After i create the Custom Post Type, i wanted to organize the List Columns to show my houses. Because i’m doing a house system, to show ‘n sell the buildings.
So, in my Custom Post Type, i don’t need title, editor ‘n thumbnail, but, if u see the columns (that part that u can see every houses ‘n edit, delete), ‘n the manage_posts_custom_column structure, u need the “title” because it can show the $post->ID ‘n show the manage options. But, i don’t need the title ‘n i want to change the title to another custom post. How can i do this?Ex:
add_action("manage_posts_custom_column", "my_custom_columns"); add_filter("manage_edit-house_columns", "my_house_columns"); function my_house_columns($columns){ $columns = array( "cb" => "<input type=\"checkbox\" />", "title" => "Type", /* I WANT TO CHANGE THIS */ "region" => "Region", "city" => "City", "price" => "Price" ); return $columns; } function my_custom_columns($column){ global $post; $custom = get_post_custom($post->ID); echo $column; if ("ID" == $column) echo $post->ID; /*displays title, i want to change to display $custom["type"][0] but with the manage options*/ elseif ("region" == $column) echo $custom["region"][0]; elseif ("city" == $column) echo $custom["city"][0]; elseif ("price" == $column) echo $custom["price"][0]; }
If u don’t understand, sorry, because i have bad english ‘n in the brazilian forum nobody helped me ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to change the title of manage_posts_custom_column’ is closed to new replies.