Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter("manage_edit-the_store_columns", "prod_edit_columns");
- add_action("manage_posts_custom_column", "prod_custom_columns");
- function prod_edit_columns($columns){
- $columns = array(
- "cb" => "<input type=\"checkbox\" />",
- "title" => "Product Title",
- "description" => "Description",
- "price" => "Price",
- "catalog" => "Catalog",
- "display" => "Display",
- );
- return $columns;
- }
- function prod_custom_columns($column){
- global $post;
- switch ($column)
- {
- case "description":
- the_excerpt();
- break;
- case "price":
- $custom = get_post_custom();
- echo $custom["thestore_price"][0];
- break;
- case "catalog":
- echo wp_tag_cloud( array( 'taxonomy' => 'Product Tags', format => 'flat' ) );
- break;
- case "display":
- $custom_display = get_post_custom();
- echo $custom_display["thestore_display"][0];
- break;
- }
- }
Add Comment
Please, Sign In to add comment