Mình đang làm cái code trong function.php của themes thì cần lấy thống tin email của người viết bài, giờ làm sao để lấy được thông tin này khi có post id của bài viết rồi. Giờ làm sao để lấy các thông tin author info như: email author, link author, name author của người viết bài.
Của bạn đây nhé, khi biết post_id của bài viết thì dùng code sau để lấy thông tin: PHP: $post = get_post( $post_id );$author_id = $post->post_author;echo get_the_author_meta( 'display_name', $author_id); echo get_the_author_meta( 'user_email', $author_id); Xem toàn bộ các biên như sau: admin_color aim comment_shortcuts description display_name first_name ID jabber last_name nickname plugins_last_view plugins_per_page rich_editing syntax_highlighting user_activation_key user_description user_email user_firstname user_lastname user_level user_login user_nicename user_pass user_registered user_status user_url yim