Hi super team,
today I'm trying to add a column in applications board (Admin Environment).
In this column I would like to have here the name of the company to which the job offer belongs.
I already managed to add the column. But I'm struggling to add the right data, because I found how to retrieve the author's name of the application (get_the_author) but I can't find where and how to get the owner's name of the job offer.
This is what I have so far:
// Dashboard - Applications - Add column
function noo_jobslist_custom_posts_columns( $posts_columns ) {
$posts_columns['job_posted'] = __( 'Departamento', 'noo' );
return $posts_columns;
}
add_filter( 'manage_noo_application_posts_columns', 'noo_jobslist_custom_posts_columns' );
// Dashboard - Applications - Add data to column
function noo_joblist_custom_column_display( $column_name, $post_id ) {
if ( 'job_posted' == $column_name ) {
echo '' . ( get_the_author() ) . '';
}
}
add_action( 'manage_noo_application_posts_custom_column', 'noo_joblist_custom_column_display', 10, 2 );
Can you help me, please?
Thanks in advance,
Cheers,
Daniel C.