Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [WordPress] How to add custom taxonomy column to Posts page(in admin area)?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30252
    seeingsound
    Member

    I found this code:

    function postsColumnsHeader($columns) {
    $columns = __('ID');
    return $columns;
    }

    add_filter( 'manage_posts_columns', 'postsColumnsHeader' );

    function postsColumnsRow($columnTitle, $postID){
    if($columnTitle == 'postID'){
    echo $postID;
    }
    }

    add_filter( 'manage_posts_custom_column', 'postsColumnsRow', 10, 2 );

    This adds id column. But how to change it to show a custom taxonomy column?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.