LoginSignup
1
0

More than 5 years have passed since last update.

get_categories、get_termsでhide_empty=0でも空のタームが出力されなかったときの覚書

Posted at

User Access Managerプラグインが入っている場合、その影響かもしれない。

管理画面>UAM>設定>Taxonomies settings

  1. 空でも出力しないカテゴリー・カスタムタクソノミーを選択
  2. Hide emptyを「いいえ」にして「設定を更新」をクリック
  3. get_categories、get_termsのパラメータでhide_empty=0を指定する

参考:categories - hide_empty property not working when using get_terms - WordPress Development Stack Exchange

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0