WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Please can someone help, i have added the categories, however it appears to be off line. I have tried to style this in a class but this screws up the whole thing.

I wrapped like the below but it seemed to apply to the whole of the div it was wrapped in

<div class="classname"><?php get_category(); ?></div>

Please can someone assist, do i edit the main style within the themes?

Your help is greatly appreciated.


share|improve this question
what are you trying to show? review get_category() codex.wordpress.org/Function_Reference/get_category – Michael Dec 17 '12 at 23:18
Hi Michael, I have now corrected this. Thankyou for your assistance. Kirsty – Kirsty Marks Dec 18 '12 at 13:16
does this mean the problem is solved? if yes, you can add the solution as an answer; if not, you could edit your question and add the current code, and describe the problem in more detail. – Michael Dec 18 '12 at 13:46
Hi Michael, apologies thought i had :) Editted :) – Kirsty Marks Dec 18 '12 at 13:57
up vote 1 down vote accepted

The way i fixed the issue was to insert the following code into my main CSS.

.post-categories, .post-categories li {display:inline; padding: 0px;}

I hope this helps others in this issue in the future.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.