WordPress.org

Ready to get started?Download WordPress

Forums

Disappearing Code? (4 posts)

  1. Soulgirl
    Member
    Posted 5 years ago #

    Hi there,

    I've noticed that WordPress loses code when editing pages/posts.

    For example, I use a simple bit of code to allow flickr screenshows in my posts. I make the blogpost, add the code via the HTML tab and save.

    I go back to edit that page and the code has disappeared. Why is this? Is there a fix?

  2. iridiax
    Member
    Posted 5 years ago #

    Never switch back and forth between the visual and html editors (this messes up your code). If you are adding your own code, then it is best to disable the visual editor in your dashboard profile to prevent this from happening.

    Try looking for a flickr plugin, it may work better than pasting code:

    http://wordpress.org/extend/plugins/search.php?q=flickr

  3. Soulgirl
    Member
    Posted 5 years ago #

    The flickr code was just an example. I wonder if WordPress are working on a fix for this? If the option to use both visual and html are available then switching should work :)

  4. iridiax
    Member
    Posted 5 years ago #

    If the option to use both visual and html are available then switching should work

    These two editors just do things very differently. The visual editor is not a preview tool (use the Preview button instead) and it is meant for people who don't want to enter their own code. You can use the visual editor with plugins to add different kinds of media instead of pasting in code.

Topic Closed

This topic has been closed to new replies.

About this Topic