Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. How to get category? Various method in case.

How to get category? Various method in case.


the_category() : template tag

the_category() is used in loop. It display categories links.

get_the_category() : function

get_the_category() is function of getting array of categories information.
Should be get knowledge about processing of array together.
Use “for each”, all data in array is get in order. this explanation is later….

Get posts data limited categories.

Posts data can be limited by categories.

comment

Fields with * is required.

go to related tags archive?