Work
中文标题:Live Writer发布博客时会吃标签问题的解决 WordPress supports any desktop blogging clients to offline post a blog and publish it with XMLRPC protocol. However, I found that it had not worked since I migrated my host to another. The problem was that any HTML tags like <p>,<a>… would be stripped of the angle brackets when I published them to [...]
Continue reading about The Problem About Stripping HTML Tags Using Blog Desk Clients
This problem olny occurs in Chinese or Asian character systems(double bytes character). So I write it in mother language. 今天安装了wp-postviews(点击进入官方页面)这个文章计数插件,开始没注意到官方页面上有“usage”这个选项卡,激活后发现没有计数显示,找了一下GOOGLE后知道要在主题模板(index.php/single.php/page.php文件,分别代表主页、日志页面和page页面)的<?php while (have_posts()) : the_post(); ?> 之后的任意位置插入<?php if(function_exists(‘the_views’)) { the_views(); } ?> 就可以了。但是我插入相应代码后,博客页面仍然没有任何反应。直到看到官方页面的说明,也没发现有什么不同,于是我拷贝官方的代码段进去,竟然可以显示了!在仔细比较两段代码的不同之后发现,就是中文标点在做怪,中文网页中的说明的单引号是中文字符,应该使用西文字符才可以,这也是编程是经常犯的错误。 所以有了什么问题最好进官方页面查看一下,我就是中文网上折腾了几个小时之后才发现解决方法的。 附使用说明中文版» Usage Instructions General Usage 在主题编辑里分别打开index.php,single.php, page.php. 并不是所有的页面都要加代码,你想在什么地方加上计数显示就打开相应的页面。这四个文件分别对应首页、单篇文章页面和静态页面。 然后在编辑框中找到: <?php while (have_posts()) : the_post(); ?> 在它之后加上以下代码就可以了: <?php if(function_exists(‘the_views’)) { the_views(); } ?>
Continue reading about WP-PostViews插件无法显示计数的问题(Can’t display counts)
Recent Comments