• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Having HTML on Author Pages

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Having HTML on Author Pages

This topic is: resolved

Tagged: Author, template

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 11 months ago by gregp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 16, 2015 at 10:58 am #148141
    gregp
    Member

    I know by default, WordPress restricts html on author pages for security purposes. However, even when I tried to over ride this limitation, I still seem to have trouble with my author pages displaying html correctly.

    Is it possible to redirect and author page to a regular wordpress page about that author, and still show all the posts that the author has written?

    Does this create any problems? I am not worried about security, as I don't allow guest registration.

    Can someone point me in the right direction?

    The example URL almost looks correct, but there are too many problems overall using the regular (strip html) author template.

    http://www.felixandfingers.com/author/emily/
    April 17, 2015 at 9:37 am #148237
    gregp
    Member

    I'm going to answer my own question. Most people could add this to their functions.php file:

    remove_filter('pre_user_description', 'wp_filter_kses');
    add sanitization for WordPress posts
    add_filter( 'pre_user_description', 'wp_filter_post_kses');

    If you use that, you should be aware of security issues, if you allow guest bloggers.

    This didn't fix my problem, as I discovered the culprit was a database error. When I scanned the database I found multiple entries of the sanitized content, and it was reading the wrong one. I deleted the erroneous entries, and the problem was solved.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Having HTML on Author Pages’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble