Treehouse: Grow your CSS skills. Land your dream job.

post code in wordpress

  • # November 24, 2011 at 8:12 pm

    I am trying to post code in my wordpress post. From my reading, wordpress is suppose to recognize the code tag but it doesn’t seem to be working. When I try it, it shows the code tag as well as the code inside so I thought to try the pre tag as well and it still doesn’t work. Anyone know how to do this?

    # November 24, 2011 at 8:27 pm

    Sorry, what are you trying to do?

    Are you trying to display code on the website, or use code inside of your post?

    # November 24, 2011 at 8:31 pm

    I am trying to display the code, not run the code. The point is to put in a shortcode, have wordpress run the code that the shortcode does and then be able to display the code below to show how the shortcode was done. View this page to see what I an example

    # November 25, 2011 at 7:49 am

    you just use a code converter

    # November 25, 2011 at 9:37 pm

    That reallt helps. Thank you much, Eric!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.