Code tags not working (6 posts)

  1. itissue
    Posted 9 years ago #

    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?

  2. whooami
    Posted 9 years ago #

  3. dwichers
    Posted 8 years ago #

    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

  4. jauntymellifluous
    Posted 8 years ago #

    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?

  5. jauntymellifluous
    Posted 8 years ago #


  6. jauntymellifluous
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic