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.


  • what are you trying to show? review get_category() codex.wordpress.org/Function_Reference/get_category
    – Michael
    Dec 17, 2012 at 23:18
  • Hi Michael, I have now corrected this. Thankyou for your assistance. Kirsty Dec 18, 2012 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, 2012 at 13:46
  • Hi Michael, apologies thought i had :) Editted :) Dec 18, 2012 at 13:57

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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