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

Every time I use the_post(); in my theme code, the following is echo'ed into my pages:

<style type="text/css">
    .formTitle {
    .formDescription {
    .formElement {
    .formElement .textbox {
        font-size: 16px;
        font-weight: bold;
    .formElement .title {
    .checkbox, .radio {
    .button {
        font-size: 14px;
    .required {

Where in the world is this from? What is it? How do I stop it from being printed out?

share|improve this question
Do you have any form plugins that may be causing that? Can you share a sample of how you're using it in the template? – Jonathan Wold Feb 27 '12 at 4:32
up vote 1 down vote accepted

You can view the actions and filters being used in your plugins and themes. I'm assuming something is hooked into the_post action somewhere. Dumping the following globals give you a peek behind the curtain here.

global $wp_actions, $wp_filters;

Once you identify the source, you either queue up the CSS properly in the HEAD, or remove it altogether.

remove_action('the_post', 'function_name');
share|improve this answer
Thanks that helped a lot. I was able to identify a poorly-written plugin that was spitting out that stuff when the_post() was called. Plugin should have been hooking the_header() or the_footer() instead. – Jake Wilson Feb 27 '12 at 6:03

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.