get_category [ WordPress Function ]
| Parameters: |
|
| Uses: |
|
| Returns: |
|
| Defined at: |
|
Retrieves category data given a category ID or category object.
If you pass the $category parameter an object, which is assumed to be the category row object retrieved the database. It will cache the category data.
If you pass $category an integer of the category ID, then that category will be retrieved from the database, if it isn't already cached, and pass it back.
If you look at get_term(), then both types will be passed through several filters and finally sanitized based on the $filter parameter value.
The category will converted to maintain backwards compatibility.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get category « WordPress Codex
Description. Retrieves category data given a category ID or category object. If you pass the $category parameter an object, which is assumed to be the category ...
codex.wordpress.org - Bug with WordPress get_the_category or get_category?
Bug with WordPress get_the_category or get_category? (7 posts). chasporter. Member Posted 9 months ago #. Any ideas on what's going on here and how to fix ...
wordpress.org - get_categories - WordPress Codex
Description. Returns an array of category objects matching the query parameters. Arguments are pretty much the same as wp_list_categories and can be ...
codex.wordpress.org - IKsTopologyInfo::get_Category method
The get_Category method returns one of the filter categories for this stream class driver.
msdn.microsoft.com
Gebruikersdiscussies [ wordpress.org ]
- ringishpil on "How to get the category when in category (outside loop)"
- ringishpil on "How to get the category when in category (outside loop)"
- AlphaGolf_fr on "Bug with WordPress get_the_category or get_category?"
- AlphaGolf_fr on "Bug with WordPress get_the_category or get_category?"
- esmi on "Bug with WordPress get_the_category or get_category?"
- AlphaGolf_fr on "Bug with WordPress get_the_category or get_category?"
- Zen Gonzaga on "How to display the term_ID in archive page"
- Zen Gonzaga on "How to display the term_ID in archive page"
- alchymyth on "Bug with WordPress get_the_category or get_category?"
- nsathees on "Bug with WordPress get_the_category or get_category?"