Is [code] broken?
-
Code blocks for displaying snippets of code isn’t working correctly on my blog. In the past I have put code snippets inside of [code][/code] and it worked but in today’s post it doesn’t work. Did something change or there is supposed to be a different construct? I tried to follow the post from http://en.support.wordpress.com/code/posting-source-code/ to fix it but it still doesn’t work.
Firefox 30 & IE10.
The blog I need help with is: (visible only to logged in users)
-
I believe you have already read these:
http://en.support.wordpress.com/code/posting-source-code/
http://en.support.wordpress.com/code/I’ll tag this thread for a Staff follow-up. Please subscribe to the thread so you are notified when they respond and please be patient while waiting.
-
Hi there,
I took a look at your blog, but I wasn’t able to find the posts where the code shortcode wasn’t working properly. Could you send me a link to the post or posts where it isn’t working?
If you can also send a screenshot of the problem, that would help. You can upload screenshots to your Media Library under Media > Add New in your dashboard, or you can use an online service like Snaggy.
-
Hello Rachel. Thanks for helping me out. Here is the link to the specific blog post. http://danielthenerd.wordpress.com/2014/07/08/scsm-how-to-get-sort-incidents-in-mvc4/
Here is the screen shot of the broken code block.
http://snag.gy/8jVHv.jpgAs you can see it is wrapping the entire code black into one line and parsing some items into html which then display incorrectly as compared to the support page post of how to use code blocks.
:)
-
I am having the same problem trying to embed a form from Action Network on this page: http://allwalksdc.wordpress.com/
I included [code language="text"] and [/code] at the end (I’m not sure what type of html it is, I’m not that advanced here) and it won’t display no matter what I seem to do. Please help?
-
Aha, thanks for pointing that out. Did you copy and paste that code from another source (like another website)? Also, when you entered the code, did you enter it in the Visual editor or the Text editor?
It looks like your line breaks were parsed as HTML, which could be an artifact of how the code was added to the editor. If I can get a bit more information about how the code was written and added to the editor, I might be able to sort out why that happened.
(In general, if you are pasting in code from elsewhere, you can use the Paste as text button to make sure other formatting isn’t pasted in with the code.)
-
The [code] shortcode is specifically for posting source code on your site (to show the code itself to your readers), not to embed things on your site. If you'd like more help with that form, please start a new forum thread with your question. Thanks!
-
Hmm, I guess I am confused. Here is what I know:
1. I am trying to embed an email sign-up form that is supposed to look like this (the part on the right), from this site: https://actionnetwork.org/forms/sign-up-for-updates
2. I pasted the code that Action Network gave me in the text editor
3. If I don’t use “code” the text editor strips it down. If I do, it won’t display.Also I don’t see the paste as text button – is that the magic solution here?
Thoughts?
-
The issue you’re asking about is different from the issue the original poster in this support thread raised. In order to keep your questions straight, please start a new forum thread with your question.
- The topic ‘Is [code] broken?’ is closed to new replies.