the_ID() print the post ID. You need to use the get_the_ID() which return the post ID. Example: foreach (get_the_terms(get_the_ID(), 'taxonomy') as $cat) ...
確定! 回上一頁