WordPress.org

Ready to get started?Download WordPress

Forums

Authors using class and id (XHTML/CSS) (2 posts)

  1. rghedin
    Member
    Posted 6 years ago #

    Hi!

    In my site, the register is opened to visitors. With this, they can publish content. But I'm having a problem with this...

    When somebody that is not admin send a post to moderation, and I (admin) publish it, if there are some class or id in XHTML tags, that aren't publish.

    For example: if someone publish a post with <p class="not_download">Download</p>, when I publish, it appear at blog as <p>Download</p>.

    How I correct this issue?

    []'s!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    You don't. Non-Admins get their posts filtered. They're not allowed to use classes and such.

    If you install the Role Manager plugin and then give those users that you trust a role with the "unfiltered_html" capability, then they'll be able to post html code that won't get filtered like this.

Topic Closed

This topic has been closed to new replies.

About this Topic