Display html in WP post

4 replies
Can someone suggest a good plugin that allows you to display html code inside a post?

I tried it without a plugin, and can get to work just sometimes.

The plugins I found most were outdated. Perhaps Im searching for wrong thing.

I would just like to display some code readers can copy and paste.
#display #html #post
  • Profile picture of the author Joe Crosbie
    You can do that by default.

    If the HTML you are putting in is not working, there must be a problem with your code.

    If you want, drop me a message with the code and I'll have a look
    Signature
    I chose entrepreneurship over further education despite being laughed at by my friends and family..

    I recently hit the "RESTART" button on my life, read my personal blog to find out how I did it :)
    {{ DiscussionBoard.errors[8427660].message }}
  • Profile picture of the author tedobee
    Thanks Joe, got it working.

    Only problem though is the it appears in a text box with a long horizontal scroll line.
    It works but hoping now to fins a way to make it where maybe I can adjust the width of the box its in.

    anyways, working ok
    {{ DiscussionBoard.errors[8428025].message }}
  • Profile picture of the author WillR
    It must be where you are placing the HTML code that is causing the issue. The HTML box on a post or page will just allow you to insert HTML code like any other HTML page. If it's getting inserted into a box then that likely has to do with your theme styles.
    {{ DiscussionBoard.errors[8428895].message }}
  • Profile picture of the author veniceofnorth
    If you have php also in the code then you will definitely need a plugin, otherwise you can add raw html.
    {{ DiscussionBoard.errors[8431570].message }}

Trending Topics