How do you display PHP Codes in a WordPress post?

Discussion in 'WordPress' started by sixty6, Jul 10, 2006.

  1. #1
    Whenever I try and display a PHP Code in a WordPress post, it always dissapears and never shows up...

    Is there a plugin or something which can fix this?
     
    sixty6, Jul 10, 2006 IP
  2. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
  3. sixty6

    sixty6 Well-Known Member

    Messages:
    1,748
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    190
    #3
    I don't want it to RUN the PHP code, I want it to be displayed so other can see it, I am having troubles with SimpleCode as well, it never seems to work...
     
    sixty6, Jul 10, 2006 IP
  4. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use the <code> </code> tags if they dont work simply remove <? ?> then the code will essentially be text...
     
    dotcomguy, Jul 10, 2006 IP
  5. sixty6

    sixty6 Well-Known Member

    Messages:
    1,748
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    190
    #5
    I got it now, thanks!
     
    sixty6, Jul 10, 2006 IP
  6. dotcomguy

    dotcomguy Peon

    Messages:
    824
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No problem!
     
    dotcomguy, Jul 10, 2006 IP