Support » Fixing WordPress » Code tags not working

  • I was trying to post a javascript tutorial. I used code tags for the code and hit save. The problem is, the code tags don’t work and I’m left with empty spots where the code should appear. When I looked at the code again, the code tags are where they should be. How may I resolve this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • whooami



    You want to place JavaScript code into a post?
    You might want to take a look at the TinyMCE code of WordPress and tweak it a little beacause it replaces tags and characters that you might need to show your post correctly. Open
    #9 #12 are characters that TinyMCE replaces
    #25 tags that TinyMCE replaces



    I have a similar problem. But I’m not trying to put code in my posts. I am putting the code in the actual templates of the blog.

    I’m trying to edit the wordpress classic theme. I simply want to add some flash movies to the header for that I would require the object tag to work.

    But I see empty spots when I put the code in the page and run it on my browser.

    This happens even if I try to use a simple img tag.

    What’s happening? How can I solve it?






    Okay I figured it out. Thanks to your cool docs.

    Basically if you need to reach any file in the stylesheet directory. For example there’s an image in an images folder and you want to display it on your forum header or somewhere on the page by editing the actual code of the page..
    then you’ll have to add a php tag for the complete link..

    for example,
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images.." />

    <?php bloginfo('stylesheet_directory'); ?> completes the directory path.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Code tags not working’ is closed to new replies.