• Hello, I currenty use the function

    query_posts("cat=3,4,-6");
    while (have_posts()) : the_post();

    (outside the loop) to catch some posts.
    But I would prefer to use get_categories instead (it’s because of a plugin), and I would like to know if I can use some similar syntax.
    Notice that i’m using this outside the loop.
    Is it possible ? The codex isn’t very clear about that…
    THanks !

Viewing 1 replies (of 1 total)
  • It would help to know *what* your plugin is going to do with it, because you do understand how get_categories() works, yes? It returns an object array of the available categories. It provides no information on posts within those categories.

Viewing 1 replies (of 1 total)
  • The topic ‘question about get_categories.’ is closed to new replies.