howto show category name by ID
-
Hallo!
I just want to show the name of my category with the ID=1
within my template. So I tried:<h2><?php echo( get_category( 1 ) ); ?></h2>
But that gives me the following error:
Catchable fatal error: Object of class stdClass could not be converted to string in …
I understand that get_category delivers in the wrong format but have no clue what to do to get the screen printout of the name.
any help appreciated,
thx,
piedro
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘howto show category name by ID’ is closed to new replies.