How to show code in the post ?

Discussion in 'WordPress' started by MeetHere, May 4, 2007.

  1. #1
    I want to show some code in my wordpress post..
    Like < a href = " http : // www.dirkut.com >

    But it turns to live link..
    Look here www.dirkut.com the first post..

    Can anybody help :(
     
    MeetHere, May 4, 2007 IP
  2. Cheap SEO Services

    Cheap SEO Services <------DoFollow Backlinks

    Messages:
    16,664
    Likes Received:
    1,318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Go to Edit Post.

    Click the "HTML" or "CODE" tab. get rid of the <a href=fjwefgnwofgo> tag and also the closing </a> tag.

    Col :)
     
    Cheap SEO Services, May 4, 2007 IP
  3. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #3
    I have already used <code> tag around those codes .. But it gets converted to live link.. :(
     
    MeetHere, May 5, 2007 IP
  4. BLaZeR

    BLaZeR Peon

    Messages:
    1,567
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
  5. arpitagarwal82

    arpitagarwal82 Notable Member

    Messages:
    2,996
    Likes Received:
    398
    Best Answers:
    0
    Trophy Points:
    280
    #5
    You can do it while typing the post
    Just make three replacements.
    replace < with &lt;
    replace this > with &gt;
    and replace " with &quot;

    now when you will publish the post the results will be as desired.
    Hope it helps.
     
    arpitagarwal82, May 5, 2007 IP