Conversation
supportI need to display posts list by the current author/user who is logged in. is there any option to display a particular author’s post list?
Hello Unfortunately the plugin does not have this feature. Perhaps an additional code will help you: Please use this hook – ‘tableon_wp_query_args’ – https://posts-table.com/hook/tableon_wp_query_args/ An example: add_filter('tableon_wp_query_args', function($args, $table_id) { if ($table_id > 0) { $id = get_current_user_id(); if($id){ $args['author__in'] = [$id]; } } return $args; }, 10, 2);
Hello Unfortunately the plugin does not have this feature. Perhaps an additional code will help you: Please use this hook – ‘tableon_wp_query_args’ – https://posts-table.com/hook/tableon_wp_query_args/ An example: add_filter('tableon_wp_query_args', function($args, $table_id) { if ($table_id > 0) { $id = get_current_user_id(); if($id){ $args['author__in'] = [$id]; } } return $args; }, 10, 2);