• Hi everybody,
    my posts contain html code: <div class=”whatever”> … </div>. Unfortunately WP ignores the class attribute when displaying the post. When I look into the DB the post looks alright, but the html source only contains <div> … </div> (without the class attribute. What is the reason?
    Thanks and best regards,
    MiPi

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it possible that you’ve stuck the class=”whatever” in the wrong area in the template, such that it gets stripped out by PHP?

    That would be the first place I’d look.

    Thread Starter mipi

    (@mipi)

    Problem is solved with upgrade to WP 2.07
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP ignores class attribute in posts’ is closed to new replies.