Show the First Category Name Only. Copy. $categories = get_the_category(); if ( ! empty( $categories ) ) { echo esc_html( $categories[0]->name ); }.
確定! 回上一頁