How To Add Single Quotes In WordPress Posts如何添加单引号在WordPress职位
Single quotes are a royal pain when using WordPress to post your code.单引号是一个皇家疼痛时,使用的WordPress后您的代码。 WordPress, in its infinite wisdom, does some really bad things to it.在WordPress ,在其无限的智慧,是否真的坏的东西。 And anyone who attempts to simply cut-n-paste your code sample is in for a rude surprise and you are in for some really trivial support calls.和任何人谁企图简单地削减氮贴上您的代码示例是在一个粗鲁感到惊讶和你是在为一些琐碎的真正支持的来电。 So here is how you write your single quotes in WordPress:因此,这里是你如何撰写您的单引号在WordPress :
' '
This is safe from WordPress mangling logic.这是从安全的WordPress压延逻辑。 For other such codes refer其他这些守则是指 here这里 . 。
Filed under提起下 CMS Software CMS软件 , , How To如何 , , Pro Blogging赞成Blogging , , Tech Note技术说明 , , Web网页 , , Web Services Web服务 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |




September 4th, 2006 at 2:08 am 2006年9月4日在上午02时08分
This plugin does this automatically:此插件,这是否自动:
http://www.semiologic.com/software/unfancy-quote/
September 4th, 2006 at 10:01 am 2006年9月4日在上午10时01分
Unfortunately your plugin does the same for double quotes too, which may or may not be what the user wants.可惜您的插件是否相同双引号太多,这可能是也可能不是什么用户希望。 It would be better to have it as an option, quicktags would be a better way I think.最好是将它作为一个选项, quicktags会是一个更好的方法,我认为。