分类: Wordpress
-
对游客隐藏部分文章
言归正传,说说实现的方法。打开你主题目录下的 index.php 或者 category.php 等文章列表模板,查找类似代码: while (have_posts()) : the_post(); 将其改成: while (have_posts()) : the_post(); if (get …
-
批量删除自定义栏目
DELETE FROM wp_postmeta WHERE meta_key = "自定义栏目名称";
-
制作一个按标签首字母分类的WordPress标签页
首先,把下面代码放到 functions.php最后一个 ?> 之前 放入以下代码: [download id="20"] 然后复制一份 page.php 文件,把其中 部分换成 ,并把 Template Name 名字替换为“标签页面”,然后在后台新建一个 …
-
WordPress各种标签调用集合
wordpress是一种使用PHP语言开发的博客平台,用户可以在支持 PHP和MySQL 数据库的服务器上架设自己的网志,插件众多,易于扩充功能。安装和使用都非常方便。目前 WordPress 已经成为主流的 Blog 搭建平台。 …
-
Flexform – Retina Responsive Multi-Purpose Theme
Flexform is the ultimate multi-purpose WordPress theme. It’s super responsive, retina ready, and built upon the 1170px Twitter Bootstrap framework. Featuring a clean, modern, and superbly sli …
-
Travel Fullscreen/Responsive WordPress Theme
Travel is a definitely fantastic and unique responsible and fullscreen theme designed for photography presentation, you could use it for your portfolios, travel logs or any other purpose if y …
-
Maestro – Fully-functional Business Instrument
Are you tired of featureless nonprofessional templates? We represent to your attention the new Maestro theme. It is a skill top in construction among WordPress templates and is the best of th …
-
WordPress更换域名完美攻略
由于博客文章里的一些链接和图片地址还是用的旧的域名,所以还需要进行一些修改。 登陆phpmyadmin,选择自己博客的数据库,然后点击SQL,将下面三行命令输入进去: UPDATE wp_posts SET post_content = rep …
-
wordpress调用指定ID的页面-get_page()
wordpress可以通过 get_page() 函数,来获得指定ID的页面的内容、标题等信息。 以下是关于页面的其他信息:
-
wordpress文章描述及关键字自动调用
一段精简代码: <?php if (is_single()){ if($post->post_excerpt){ $description=strip_tags($post->post_excerpt); } else{ $description=substr(strip_tags($post->post_content),0,110); } …