It will operate just like code, it will implement the code, and the result is you get a message that can not predict what will appear in it.
They will be removed, will leave the room and the clutter in the article.
Or in other words, they will not look like your wishes at all.
Many people believe that if they use HTML tags or
then the code is in the form shown in the correct code. But really, if you ever tried to use two cards above, you'll notice they have no effect whatsoever. So how to code shown in the article?
Moving code to text
For the code to display properly in the articles, they must be converted to characters. Ie you will turn the character into the code and the symbol character in the form of entity. The browser will understand the character of this entity and will display them exactly as you desire.
As we all know, the code begins with a
. This is a sign to know that the WordPress content within it is the code. Therefore, if you do not turn it into a character entity, WordPress will automatically execute commands in the code that is filtered or not to show it.
Therefore, referring to the way that trangtriblog.com is: how to understand the WordPress code in the
is not the code?
Quite simply, we just move the
characters to entity form, then it should not be construed as WordPress and browser code anymore, but they are understood as an ordinary character.
So write this letter to be like?
Sign / a /
There trangtriblog.com you ask: Why do not you have the theme of the reader to write comments in the Page but only in the Post?
This is the code required to comment in the page.php file appears in the Page in WordPress:
Unfortunately, the same as if trangtriblog.com wrote in the article or comment to answer, it will not display anything, and of course the reader will not see anything.
By switching to character entities, trangtriblog.com will write the code above as follows:
Meanwhile, the line will not be considered as a code or a command, it is only normal characters.
This is just the simplest way to write and post code in WordPress posts. In the following article, trangtriblog.com will introduce to you the plugin and the program code to automatically convert the character entity. Hopefully the small tips will help a little something on the way to become your professional blogger.
Poster : beStyle
Viewed : 327