Support » Fixing WordPress » Add Screen Options for Post Meta or Custom Field

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, that screen shot was a major fail… here it is again: http://imgur.com/cPyjA

    function cust_field_text($column_name){
            if($column_name === 'cust_col'){
                     the_meta();
              }
    }
    add_action('manage_posts_custom_column', 'cust_field_text', 10, 2);
    function cust_fields($defaults){
        $defaults['cust_col'] = __('cust fields');
        return $defaults;
    }
    
    add_filter('manage_posts_columns', 'cust_fields');

    Somehow I managed to show all used custom field with values in post-list.
    Used above code in functions.php

    here is image – http://imgur.com/6HLMW

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Screen Options for Post Meta or Custom Field’ is closed to new replies.