1℃
2℃
4℃
0℃
一些常用的wordpress模板结构及页面函数调用参数,以备后需:
模板常用的PHP函数及命令
<?php the_tags(); ?> ; 调用文章标签
<?php get_header(); ?> : 调用Header.php
<?php get_sidebar(); ?> : 调用Sidebar.php
<?php get_footer(); ?> : 调用Footer.php
<?php the_content(); ?> : 显示内容(Post/Page)
<?php if(have_posts()) : ?> : 检查是否存在Post/Page
<?php while(have_posts()) : the_post(); ?> : 如果存在Post/Page则予以显示
<?php endwhile; ?&...
Template, WordPress, 模板阅读全文
3℃
3℃
网站性能是任何成功的网站的一个关键因素。如今WordPress的正变得比以往任何时候都更受欢迎,这里提到的11个提升WordPress速度与性能的技巧可能对你有用。
1.升级到Wordpress的最新版本(beta版除外 - -#)
WordPress 2.7相对于以往的版本有大量的更新,因此,最好升级到最新的版本。
2.删除没有必要的插件,升级正在使用的插件
从Web服务器上删除你未使用的插件,仅仅停用插件还是会影响到一个网站的速度,因为WordPress会检查看看他们是否被激活;此外你必须保持你正在使用插件的最新版本,插件作者推出新版本...
WordPress, WordPress Plugin阅读全文
8℃
CodeColorer is the plugin which allows you to insert code snippets into the post with nice syntax highlighting.. I want to show you example first:
Plugin based on GeSHi library, which supports most languages. CodeColorer has various nice features:
line numbers
automatic links to the documentation inserting
code block intelligent scroll detection (short code would have short block, for long one block height would be fixed and scrollbar would appear)
predefined color themes...
WordPress, WordPress Plugin阅读全文
6℃
在wordpress的widgets中的Meta标签下面,默认会有一个指向http://wordpress.org/的链接,有些用户可能会想去掉这个链接,那应该如何做呢?
其实很简单:
1.打开wp-includes\\widgets.php。(WordPress 2.8的是wp-includes\\default-widgets.php这个文件)
2,查找 wordpress.org或者http://或者直接查找http://wordpress.org,找到http://wordpress.org所在行。
3.如果以后不需要恢复这个链接的,那么直接删除<li>…</li>包围的这一行,如果以后还有可能要加上这个链接的,那么在这一行的<li>前面添加 ...
WordPress阅读全文
2℃
首先,我觉得,寻找WordPress静态化插件的人不在少数!
在我得知有这么一款插件的时候就迫不及待地想把他告诉所有使用WordPress的人们,于是我感觉写下Wordpress静态插件 - WP-Super-Cache这个标题,后来不知道忙什么去了,就把此事耽搁。
关于静态化,好像一直都是所有使用WordPress的朋友最希望有的一个东西,不说别的,人们都说WordPress非常消耗资源,后来有朋友在关于WordPress的数据库查询中更证明了这个问题(找了一圈gg reader里死活找不到那篇日志了)。
对于wp静态化,谁都要说到那个著名的wp-cache了,...
WordPress, WordPress Plugin, Wordpress静态, WP-Super-Cache阅读全文



