does not work, after you publish a few times, it blanks out…
-
code does not work, after you publish a few times, it blanks out the
<code>content every time with every code type.The blog I need help with is: (visible only to logged in users)
-
Hi there,
Are you trying to post source code on your site? Have you tried using our code shortcode, rather than the HTML tag?
-
Greetings,
From time to time it is like the page freezing, when i click on write or something relating to my profile i just get the wordpress (w) and nothing more..
-
@gnothyself, please don’t post into threads created by other users, and always include a link to the site you need help with when creating your own thread. Else you’re just making it harder for us to help both you and the person in whose thread you posted.
If you only see a page with the WordPress logo when you try to work on your site, it means your browser is not loading all the code our site needs to work. Try clearing your browser cache and disabling all browser add-ons to see if that helps, or try logging in using a different browser.
-
I have tried with [
code] <code> <pre>etc. It usually works once, but next time I edit, or go into the HTML editor, it either removes the entire block, removes all my source or mangles it with random garbage. It is impossible to post multipl HTML source code blocks in a blog, especially if you want to ever edit it.I have been told that this is a known bug and there is no workaround yet.
I have switched all my developer blogs to blogger.com until such time as the problems are fixed.
Some people have suggested trying the new editor. I have not done this yet as I don’t want to waste more time, at least until someone can say if its is fixed.
-
Can you clarify which editor you’re using now? We have classic and block for both wp-admin and Calypso.
-
I am using the same one for years, so I am guessing its classic. I have heard of block, but not seen it or used it. I have not seen anyone say that the problem does not exist in block also.
-
Okay, so wp-admin classic (default is black and grey) or the blue Calypso editor?
And, can you paste some of the code samples here? Be sure to enclose them in backticks.
We’ll test on our end.
I can tell you I’ve personally seen some issues along those lines. I’ll see if I can find what you’re dealing with and file an issue if one is needed, or update an existing issue.
-
I just tried using the new blocks editor. It is the same – its completely broken for showing HTML in a code or any other block. Sime blocks work, some dont. If there are any html tags, it fails.
Sadly, there is no way to upload images into this forum, to show the code in the editor and the random garbage which actually appears as a result.
-
Can you please provide the information that @supernovia asked for above?
Okay, so wp-admin classic (default is black and grey) or the blue Calypso editor?
And, can you paste some of the code samples here? Be sure to enclose them in backticks.
If you have screen shots you can add them directly to your media library at My Site ->Media ->Add, but to test this we’ll need to actual code you’re trying to use as well.
-
Hi, absolutely any HTML breaks the [code] blocks, in the old or new editor. Every piece of HTML I have tired breaks it. Usually, it usually simply deletes all the html code (after saving and opening again) leaving empty code blocks. I have been trying to post the simplest of HTML for about 3 months now. Always fails. 100% reproducible with any HTML. CSS is ok, it standard html, i.e. angle bracket head close angle bracket. All HTML i tried to post is now gone.
I assume a backtick is a backquote. How many of them are needed to enclose HTML code? do they have to be on a new line, or inline with the html?
Sorry, I have no idea how to upload images to this forum. You mention uploading them to my sites media, but how does this help?
-
Interestingly, any HTML I try to put in a code block, the editor says “this block contains invalid or unexpected content”.
If I click on “resolve” button, it shows before and after. Both are identical:
[code lang=""html""] <i class="fa fa-camera-retro fa-4x"></i>fa-4x [/code]Any option I chose either deletes what’s between the code blocks, or stays in a broken state.
-
Note, the code shown in the snipit above is not what I pasted in either, its replaced chars with their url safe versions. No a problem, just pointing out what you see is not what I pasted in.
-
I noticed that markdown is enabled for my blog site. so i tried some standard markdown. In my post, I switched to the code editor, and entered 3 backquotes, my snippet of html, then three backquotes.
Instead of rendering this as markdown, instead it put a <p> around the three back quotes, and removed all the HTML.
So Now I have exhausted every option to display some html in wordpress in my blog post. As the blog is a HTML development blog, this is pretty critical.
-
Hi –
I noticed that markdown is enabled for my blog site. so i tried some standard markdown. In my post, I switched to the code editor, and entered 3 backquotes, my snippet of html, then three backquotes.
Can you point me to the post where you tried this? Please share the post title or a link if has already been published.
A backtick is this
and you can use it like this when placing one before and after the code.place code here.
- The topic ‘does not work, after you publish a few times, it blanks out…’ is closed to new replies.