I want to answer questions from the dasboard in DW Question and Answer. Saw you can link an answer to the question via the Question ID on the right side. But where do i find this question ID?
1 Answers
If you want to show the ID of the question, you can add the following code to the functions.php file.
add_filter('manage_posts_columns', 'posts_columns_id', 5);
add_action('manage_posts_custom_column', 'posts_custom_id_columns', 5, 2);
add_filter('manage_pages_columns', 'posts_columns_id', 5);
add_action('manage_pages_custom_column', 'posts_custom_id_columns', 5, 2);
function posts_columns_id($defaults){
$defaults['wps_post_id'] = __('ID');
return $defaults;
}
Please login or Register to submit your answer