Viewing 1 replies (of 1 total)
  • Thread Starter weirdrubikscube

    (@weirdrubikscube)

    ok so i found the hiccup

    wordpress would display my private posts only if there is at least 1 public post published in the same category as the private post

    so I just needed to set hide_empty and that’s it !

    $cat_args=array(
      'orderby' => 'name',
      'hide_empty' => 0,
      'order' => 'ASC'
       );
    $categories=get_categories($cat_args);

    hope it could help someone else

Viewing 1 replies (of 1 total)
  • The topic ‘display list of posts by tag (or category)’ is closed to new replies.