<br />
<b>Deprecated</b>:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in <b>D:\wwwroot\bbs.5ucms.com\source\class\discuz\discuz_database.php</b> on line <b>177</b><br />
<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>5ucms论坛 - wordpress</title>
    <link>http://bbs.5ucms.com/forum-93-1.html</link>
    <description>Latest 20 threads of wordpress</description>
    <copyright>Copyright(C) 5ucms论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 15 Apr 2026 13:43:54 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.5ucms.com/static/image/common/logo_88_31.gif</url>
      <title>5ucms论坛</title>
      <link>http://bbs.5ucms.com/</link>
    </image>
    <item>
      <title>Wordpress里提示警告信息creating default object from empty value in</title>
      <link>http://bbs.5ucms.com/thread-998-1-1.html</link>
      <description><![CDATA[PHP里提示 Creating default object from empty value 的问题，一般是由于PHP版升级的原因，PHP 5.4 以上的版本一般会报这个错误。
PHP的解决方法：找到报错的位置然后看哪个变量是没有初始化而直接使用的，将这个变量先实例化一个空类。如：$ct = new stdClass();

 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 28 Sep 2022 12:05:25 +0000</pubDate>
    </item>
    <item>
      <title>wordpress插件Pods模板及字段调用方式</title>
      <link>http://bbs.5ucms.com/thread-995-1-1.html</link>
      <description><![CDATA[前端模板的命名规则

自定义页面内容类型 模板命名规则：archive-{post_type_name}.php 如 archive-movies.php

自定义分类法 模板命名规则：taxonomy-{taxonomy_name}.php 如 taxonomy-movie_type.php

自定义内容类型内容页 模板命名规则：single-{post_type_na ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Thu, 22 Sep 2022 12:11:01 +0000</pubDate>
    </item>
    <item>
      <title>配置orderby参数 实现WordPress文章自定义排序</title>
      <link>http://bbs.5ucms.com/thread-993-1-1.html</link>
      <description><![CDATA[WordPress 默认文章列表排序方式是根据发布时间，也就是最新的文章显示在列表最前面，那么我们如果想自定义文章的排序呢？如按修改时间、按评论数，甚至是按照阅读量排序~

WordPress 文章查询有若干种方法，本文仅拿 query_posts($args)数据查询来说，通过配置其中的 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 21 Sep 2022 01:46:50 +0000</pubDate>
    </item>
    <item>
      <title>wordpress页面默认排序修改的方法</title>
      <link>http://bbs.5ucms.com/thread-992-1-1.html</link>
      <description><![CDATA[使用过wordpress网站的朋友应该值得默认页面排序是无法调整的，在页面比较多的时候不方便管理。

我们可以通过下面的方法来实现wordpress页面排序功能：

在主题函数functions.php中加入下面代码：

PHP]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 21 Sep 2022 01:42:02 +0000</pubDate>
    </item>
    <item>
      <title>一些wp教程网站</title>
      <link>http://bbs.5ucms.com/thread-991-1-1.html</link>
      <description><![CDATA[https://www.wp-diary.com/wpjiaocheng/theme-develop/
https://www.wp2.cn/ WP二开，整理了很多教程]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Mon, 18 Jul 2022 07:04:58 +0000</pubDate>
    </item>
    <item>
      <title>在wordpress文章页 增加 一键下载所有图片的功能</title>
      <link>http://bbs.5ucms.com/thread-990-1-1.html</link>
      <description><![CDATA[1、构建按钮



2、功能JS代码


3、如果使用CDN注意设置允许跨域

完整代码


短代码注册


这样就可以通过短代码 [yzm_download] 进行部署了。

来源：一只猫 https://www.zhihu.com/people/chen-kun-73-41]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Mon, 18 Jul 2022 07:03:42 +0000</pubDate>
    </item>
    <item>
      <title>wordpress使用七牛云免费加速 不缓存后台</title>
      <link>http://bbs.5ucms.com/thread-989-1-1.html</link>
      <description><![CDATA[七牛云可以免费10G CDN加速的，所以小站足够用了
特别建议用在小程序上
因为这种情况下使用流量要比Web站小的多

但我们在操作时发现后台有些不听使唤
只需在缓存配置中加一条 自定义/添加目录

/wp-admin  缓存时间为0

以此类推，你可以把用来展示访问量的AP ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sun, 17 Jul 2022 13:20:52 +0000</pubDate>
    </item>
    <item>
      <title>wordpress redis 与 Memcached 共存</title>
      <link>http://bbs.5ucms.com/thread-988-1-1.html</link>
      <description><![CDATA[测试了一下 
WPJAM Basic里面已经整合了 Memcached，但需要安装时把
/wp-content/plugins/wpjam-basic/template/object-cache.php 复制到 /wp-content/ 下 才能生效
生效后，在WPJAM菜单里的系统信息中，就能找到 Memcached 的页，只有展示结果和清空缓存功能，不能 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sun, 17 Jul 2022 03:13:27 +0000</pubDate>
    </item>
    <item>
      <title>WordPress 插件 Redis Object Cache 同一服务器多站点 缓存配置</title>
      <link>http://bbs.5ucms.com/thread-987-1-1.html</link>
      <description><![CDATA[关于WordPress的redis插件，我们这里推荐：Redis Object Cache 安装方法直接在插件里搜索即可。

如果同一台服务器多站点是使用了Redis或者Memcache的插件就会导致串内容。A站点内容显示到B站点，B站点内容同样显示到A站点去。这里我们说一下详细的插件及配置来解决这 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sun, 17 Jul 2022 02:46:09 +0000</pubDate>
    </item>
    <item>
      <title>WordPress REST API如何注册添加自定义接口？</title>
      <link>http://bbs.5ucms.com/thread-986-1-1.html</link>
      <description><![CDATA[WordPress REST API给我们提供了很多的方便，但是如果想使用WordPress REST API做完成更复杂的项目的时候，默认的接口会显得不好用，不够用，这个时候，我们就可以自定义我们自己的接口，在这里我们使用到rest_api_init这个钩子，参考代码结构如下：


上面的参考自 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sat, 16 Jul 2022 14:34:46 +0000</pubDate>
    </item>
    <item>
      <title>wordpress post view counter通过调用rest api增加</title>
      <link>http://bbs.5ucms.com/thread-985-1-1.html</link>
      <description><![CDATA[已测试，可用xxx/views/文章id 号就可以增加浏览量
但这种增加方式 如果结合了cache类插件能否还能起到作用
或者在get这个api的时候，加一个random time结尾]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sat, 16 Jul 2022 14:18:45 +0000</pubDate>
    </item>
    <item>
      <title>向快速编辑区域添加修改排序的功能</title>
      <link>http://bbs.5ucms.com/thread-983-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 16 Jun 2021 06:59:47 +0000</pubDate>
    </item>
    <item>
      <title>修改后台顶级菜单“文章”及其子菜单显示名称（包括分类目录、...</title>
      <link>http://bbs.5ucms.com/thread-982-1-1.html</link>
      <description><![CDATA[实现代码：



此方法修改后，无隐藏残留问题。安全可靠。有些方法在修改后，编辑文章时，无法正常选择分类。或表面为重命名，其实为新建。请注意鉴别。

修改后台顶级菜单“文章”中的各处表述名称
实现代码如下，在实际使用中请去掉前面的数字序号，并加以个性 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Tue, 15 Jun 2021 10:04:44 +0000</pubDate>
    </item>
    <item>
      <title>wordpress插件开发教程06 制作插件管理界面</title>
      <link>http://bbs.5ucms.com/thread-981-1-1.html</link>
      <description><![CDATA[在第3课时 我们用到了一个展示插件页的方法
//要显示的主菜单页面内容


那我们可以扩展它，利用wp自带的一些样式结构，可以更快速和更加契合后台样式]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Sun, 13 Jun 2021 13:25:34 +0000</pubDate>
    </item>
    <item>
      <title>wordpress插件开发教程05 添加后台元数据框 add_meta_box</title>
      <link>http://bbs.5ucms.com/thread-980-1-1.html</link>
      <description><![CDATA[类似添加文章时 侧边显示分类目录、标签之类信息的地方










回调数组
$callback_args 数组将被传递给回调函数的第二个参数。第一个参数是这篇文章的 $post 对象。]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Thu, 10 Jun 2021 14:31:42 +0000</pubDate>
    </item>
    <item>
      <title>get_search_form 获取搜索表单 默认搜索框修改</title>
      <link>http://bbs.5ucms.com/thread-979-1-1.html</link>
      <description><![CDATA[引入 searchform.php 文件来显示搜索表单。

用法

参数

例子
如果你的主题没有 searchform.php， WordPress 将使用其内置的搜索表单：



如果你的主题没有 searchform.php ，将自动使用上面的代码替代。请记住，搜索表单需要一个 Get 方式（method=\&quot;get\&quot;  ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 09 Jun 2021 06:31:49 +0000</pubDate>
    </item>
    <item>
      <title>esc_attr() 转义html并输出</title>
      <link>http://bbs.5ucms.com/thread-978-1-1.html</link>
      <description><![CDATA[将 &lt; &gt; &amp; \&quot; \'（小于号，大于号，&amp;，双引号，单引号）编码，转成HTML 实体，已经是实体的并不转换。

在转义 HTML 属性的时候经常用这个函数（特别是表单的值，比如alt, value, title等等）

转义并输出值，使用 esc_attr_e() 代替。

用法

参数


实例

 ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 09 Jun 2021 06:15:06 +0000</pubDate>
    </item>
    <item>
      <title>esc_attr_e() 显示翻译的文本，并且转义之后适合标签值中使用</title>
      <link>http://bbs.5ucms.com/thread-977-1-1.html</link>
      <description><![CDATA[用法

参数


返回值
无

修改记录
Since: 2.8.0

源文件
wp-includes/l10n.php]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 09 Jun 2021 06:09:51 +0000</pubDate>
    </item>
    <item>
      <title>esc_url() 去掉网址中不安全内容</title>
      <link>http://bbs.5ucms.com/thread-976-1-1.html</link>
      <description><![CDATA[esc_url( home_url(\'/\') )]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 09 Jun 2021 06:05:05 +0000</pubDate>
    </item>
    <item>
      <title>wp_title() 获取当前页面标题 添加分隔符</title>
      <link>http://bbs.5ucms.com/thread-975-1-1.html</link>
      <description><![CDATA[参数：

如果seplocation的值为\'right\'，那么sep字符串会显示在文章标题后。 默认值：None 示例 默认用法


 

访问某篇单独的文章页面时，根据默认设置显示博客名称（用bloginfo()函数）与文章标题。

若博客名称为\&quot;沦落凡间\&quot;，文章标题为\&quot;Hello world!\&quot; ...]]></description>
      <category>wordpress</category>
      <author>admin</author>
      <pubDate>Wed, 09 Jun 2021 00:48:08 +0000</pubDate>
    </item>
  </channel>
</rss>