3 added 4 characters in body
source | link

I created a custom field bookcode using the code below. So, how I can add a column for this meta data into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );

I created a custom field bookcode using the code below. So, how I can a column for this meta data into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );

I created a custom field bookcode using the code below. So, how I can add a column for this meta data into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );
2 Spelling, adjust wording
source | link

Add collum withcustom column for custom field

I created a custom field 'bookcode' look likebookcode using the code below. So, how iI can add it (bookcode) asa column for this meta data into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );

Add collum with custom field

I created a custom field 'bookcode' look like below. So, how i can add it (bookcode) as column into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );

Add custom column for custom field

I created a custom field bookcode using the code below. So, how I can a column for this meta data into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );
1
source | link

Add collum with custom field

I created a custom field 'bookcode' look like below. So, how i can add it (bookcode) as column into my post type manager and make it sortable?

function save_bookcode( $post_id ) {
    if ( wp_is_post_revision( $post_id ) )
        return;
    // save custom field 'bookcode' as CFX+ID
    add_post_meta( $post_id, 'bookcode', 'CFX' . $post_id, true );
}
add_action( 'save_post', 'save_bookcode' );