RunCode:在WordPress文章中运行各种代码

RunCode可以为你的WP增加一个文本框用来运行代码(html/css/javascript).相信对做网页前端设计的朋友来说,是个非常有用的插件,可以更方便的展示自己的一些设计效果.

下载地址:http://wordpress.org/extend/plugins/runcode/
使用方法:
<runcode>
运行代码…
</runcode>
想要调整textarea的大小,可以在style.css中增加.runcode_text{ width:500px; height:200px;}

运行效果:
原文http://www.iinterest.net/2009/01/04/wordpress_runcode/

WordPress插件wp-postviews使用方法

用了很久的插件,总结一下代码调用的方法:
阅读次数:< ?php if(function_exists('the_views')) { the_views(); } ?>

1、显示阅读次数最多的文章或页面

&lt; ?php if (function_exists('get_most_viewed')): ?&gt;
&lt; ?php get_most_viewed(); ?&gt;
&lt; ?php endif; ?&gt;

如果你只想显示越多次数最多的文章,用下面这句

&lt; ?php if (function_exists('get_most_viewed')): ?&gt;
&lt; ?php get_most_viewed('post'); ?&gt;
&lt; ?php endif; ?&gt;

如果你只想显示10篇阅读次数最多的文章,用下面的代码

&lt; ?php if (function_exists('get_most_viewed')): ?&gt;
&lt; ?php get_most_viewed('post',10); ?&gt;
&lt; ?php endif; ?&gt;

get_most_viewed 函数的第一个参数决定要显示的类别,可选 post ,page,both,第二个参数决定要显示的篇数。
如果你想显示显示某类别下的阅读次数最多的文章,用下面这段

&lt; ?php if (function_exists('get_most_viewed_category')): ?&gt;
&lt; ?php get_most_viewed_category(the_catagory_ID(false)); ?&gt;
&lt; ?php endif; ?&gt;

get_most_viewed_category函数有三个参数,第一个值是类别ID,第二个值是类别,可选both,page,post,第三个值决定要显示的篇数。
例如:显示分类ID为3下面阅读次数最多10篇文章

get_most_viewed_category(3, 'post', 10);

wodpress 防盗链插件hotlink

插件是最受欢迎的博客在因特网上可得到的软件工具。很多人用它来写博客,分享信息,创建一个互动式网站并添加到自己的网站形象。能够添加有趣的图片博客帖子是一种使用模板的诸多好处。然而,它给潜在的有图像的版权,你会被偷或有你的带宽不够的人对你的图像未经允许hotlinking。
什么是hotlinking吗?对于任何熟悉的术语,这意味着一个链接到你的文章或图片。与其使用的主人的人联系在一起,这个链接是图像从原来的网络服务器,本质上是偷你的带宽。这意味着可以增加的交通,你可能需要解释甚至简单的侵权问题需要处理。未经许可的情况下,这种做法会讨厌充其量和破坏。但是,有什么可以做呢?
热线保护可以使通过。htaccess档案,但对于新手用户可以艰巨而复杂的。所以,解决的办法是使用一个插件插件称为热线的保护。所有你需要做的就是安装和激活它,然后选择一些特定的设置。这个插件本身会不允许hotlinking的图像,而取代另一个图像。默认的形象被显示的是一个标准圆线穿过它。然而,你可以修改这个形象,以一个定制的形象,如果你希望你的选择。
这是一个伟大的选择对任何人想要确保他们的图片连接到博客帖子不是偷或hotlinked。你可以选择使用默认的图像或创建一个有趣的或甚至滑稽的形象。它很容易使用和完善,为那些不熟悉的悟性和编码。

Hotlink Protection

WordPress 2.9.1

After over a million downloads of WordPress 2.9 and lots of feedback from all of you, we’re releasing WordPress  2.9.1.  This release addresses a handful of minor issues as well as a rather annoying problem where scheduled posts and pingbacks are not processed correctly due to incompatibilities with some hosts.  If any of these issues [...]

Core Team Meetup Results

To get started, here’s a short video from the meetup discussing some of the topics and 2.9. In the opening pan, you’ll see (L-R) Andrew Ozz, Mark Jaquith, Jane Wells, Peter Westwood, and Ryan Boren, followed by Matt Mullenweg as the first person talking. Tip: go full-screen in HD to feel like you were there.

Last [...]

Canonical Plugins (Say What?)

There have been a lot of references to “canonical plugins” over the past year, especially at WordCamps by Matt, but we haven’t really posted anything official about the idea, nor have we really made much progress beyond discussions about how awesome it would be to have canonical plugins and how good it would be for [...]

2010: A Theme Odyssey

After the video from the core team meetup was posted, the topic that seemed to get the most attention on Twitter and various community sites was Matt’s announcement that there would be a new default theme in 2010, so I thought I’d start with that as the first of the meetup summaries.
When Kubrick was bundled [...]