| WordPress wp desc |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 1
![]() | How to write codes in our posts so that it does not work like a code but it looks like a box and can be copied and pasted to some other template file. |
| | |
| | #2 (permalink) |
| Status: Junior Member Join Date: Aug 2009 Posts: 3
![]() | you will just want to use simple html/css inside your post. The browser will read it and display it as code, so just get whatever you want as html and insert it. |
| | |
| | #3 (permalink) |
| Status: Junior Member Join Date: Jul 2010 Posts: 4
![]() | Whether you write plugins or hacks for WordPress, or you want to add bits and pieces of code about your own WordPress site or other programming code like HTML, CSS, PHP, or javascripts, putting code in your post that "looks" like code, but "doesn't behave" like code, is a frequent challenge for bloggers. By default, WordPress will convert unrecognized uses of < and > into characters which actually look like < and >, which will "look" like a < and a > when posted. Or, if it finds the use of an HTML tag within the post, it will use the tag like it is HTML and you will have funky looking text and a messed up layout. In general, there are two uses of code within a web page. There is code found within a paragraph to make a point about the code that is being discussed, and then there is code that is highlighted. |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |