How to embed code in WordPress

Asked By 0 points N/A Posted on -
qa-featured

 

Hello.  I have a problem when I embed the codes for WordPress.  Should I follow a certain process?  Right now, I am just copying and pasting the codes from a page and then when I do this, it flashes the code right back at me on the screen.  What process should I follow?

SHARE
Best Answer by Harpe byers
Answered By 80 points N/A #106695

How to embed code in WordPress

qa-featured

 

Hello Hugh,

You need to find a metal box under the custom fields in WordPress. If you can't see the tab you can add it. Just click screen options at the top part of the new post screen. With the name of your keyword, you can now make a custom field and save it. For more information about the codes and on how making a code, visit my references below:

https://wordpress.org/plugins/simple-embed-code/

https://codex.wordpress.org/Writing_Code_in_Your_Posts

https://en.support.wordpress.com/code/

Watch this video tutorial

Zorian

 

Best Answer
Best Answer
Answered By 10 points N/A #106696

How to embed code in WordPress

qa-featured

Dear Zorian,

Remember first certain codes will not be allowed to be pasted in WordPress for security reasons e.g. “Embed”.

If you like to embed text codes OF HTML, CSS, PHP or JavaScripts which would ultimately won’t behave like codes on a WordPress code then please follow these steps –

1. First copy this into your post – [source code language=”css”],

2. Then paste your code,

3. Type this in the end – “[/source code].

Simply speaking you can type your code in between 1 and 3 texts.

I have selected CSS as a language so if your language is different (Say HTML) just enter that language name (i.e. HTML) in the above case. Writing a language in step 1 will make your code a hyperlink. If you don't want to create a hyperlink then don't write language there.

I am sure this is made very easy for you.

 

Related Questions