WordPress.org

Support

Support » How-To and Troubleshooting » can’t get category_id

can’t get category_id

Viewing 1 replies (of 1 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    reread http://codex.wordpress.org/Function_Reference/get_categories

    as your code got corrupted ( you entered it without backticks or without using the code button of this editor) i don’t know what you wanted to achieve:

    the category id would be: $cat->term_id

    i assume you have an array with the arguments build before your code snippet; what are your $args before this code?

Viewing 1 replies (of 1 total)
  • The topic ‘can’t get category_id’ is closed to new replies.