<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>我本善良 &#187; wordpress</title>
	<atom:link href="https://wbsl.org/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>https://wbsl.org</link>
	<description>一个不太正常的正常人</description>
	<lastBuildDate>Fri, 05 Jul 2024 01:35:05 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2</generator>
	<item>
		<title>WordPress站点Gravatar头像前后台不显示的解决办法</title>
		<link>https://wbsl.org/web/368.html</link>
		<comments>https://wbsl.org/web/368.html#comments</comments>
		<pubDate>Sat, 25 Feb 2023 05:10:25 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[WEB前端]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">https://wbsl.org/?p=368</guid>
		<description><![CDATA[将以下代码添加到当前主题的functions.php文件中即可： add_filter('get_avatar<a href="https://wbsl.org/web/368.html" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>将以下代码添加到当前主题的functions.php文件中即可：</p>
<p><code>add_filter('get_avatar', function ($avatar) {<br />
return str_replace([<br />
'www.gravatar.com/avatar/',<br />
'0.gravatar.com/avatar/',<br />
'1.gravatar.com/avatar/',<br />
'2.gravatar.com/avatar/',<br />
'secure.gravatar.com/avatar/',<br />
'cn.gravatar.com/avatar/'<br />
], 'cravatar.cn/avatar/', $avatar);<br />
});</code></p>
]]></content:encoded>
			<wfw:commentRss>https://wbsl.org/web/368.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lnmp安装WordPress伪静态解决方案</title>
		<link>https://wbsl.org/web/166.html</link>
		<comments>https://wbsl.org/web/166.html#comments</comments>
		<pubDate>Sat, 11 May 2019 06:16:18 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[WEB前端]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WordPress伪静态]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">https://wbsl.org/?p=166</guid>
		<description><![CDATA[首先，默认安装的lnmp环境中已经有伪静态文件wordpress.conf文件在"/usr/local/ngi<a href="https://wbsl.org/web/166.html" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>首先，默认安装的lnmp环境中已经有伪静态文件wordpress.conf文件在"/usr/local/nginx/conf/wordpress.conf"中，我们可以核对一下里面的编译代码是不是为：</p>
<p></p><pre class="crayon-plain-tag">if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}</pre><p> </p>
<p>如果不是，我们需要修改成上面的代码文件:</p>
<p>vim /usr/local/nginx/conf/wordpress.conf</p>
<p>复制上面的代码粘贴进去然后保存退出。</p>
<p>其次，我们需要在属于我们网站的配置文件：</p>
<p>/usr/local/nginx/conf/vhost/wbsl.org.conf(自己添加域名自动命名)</p>
<p>我们会看到类似下面的代码，看到include wordpress.conf;部分是我添加进去的，添加后保存。</p>
<p></p><pre class="crayon-plain-tag">server {
listen 80;
server_name www.wbsl.org;
index index.html index.php;
include wordpress.conf;</pre><p> </p>
<p>最后，我们用ssh登录VPS，然后用下面的命令重启lnmp就可以了。</p>
<p>/root/lnmp restart</p>
]]></content:encoded>
			<wfw:commentRss>https://wbsl.org/web/166.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress插入mp4视频播放无图像有声音的解决办法</title>
		<link>https://wbsl.org/soft/158.html</link>
		<comments>https://wbsl.org/soft/158.html#comments</comments>
		<pubDate>Thu, 02 May 2019 05:20:47 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress播放MP4无图像]]></category>
		<category><![CDATA[格式工厂]]></category>

		<guid isPermaLink="false">https://wbsl.org/?p=158</guid>
		<description><![CDATA[在这里浪费我好多时间，各种转换测试，由于网络不太稳定上传老失败，导致用了好长时间。最后确定，用格式工厂转换为A<a href="https://wbsl.org/soft/158.html" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>在这里浪费我好多时间，各种转换测试，由于网络不太稳定上传老失败，导致用了好长时间。最后确定，用格式工厂转换为AVC 高质量和大小就可以播放。<br />
开始选择的是AVC 720P无法播放，本想是在清晰度可以的情况下文件越小越好，现在看来能播放就可以了，质量高一点就是文件大一些，能达到效果就好。</p>
<p>不得不说格式工厂真是个好东西，视频各种转换，也可以方便把视频的音频文件提出来，等等一些我都没用的功能，格式工厂很方便也很好用。我用的格式工厂是一个绿色版解压即可使用，需要的朋友在文章结尾下载，不过不是最新版，但是只要好用就可以了。</p>
<div class="but_down"><a href="https://share.weiyun.com/58pqLpL" target="_blank"><span>格式工厂下载</span></a><div class="clear"></div></div>
]]></content:encoded>
			<wfw:commentRss>https://wbsl.org/soft/158.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>免插件实现WordPress文章阅读次数</title>
		<link>https://wbsl.org/web/122.html</link>
		<comments>https://wbsl.org/web/122.html#comments</comments>
		<pubDate>Thu, 25 Apr 2019 07:50:26 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[WEB前端]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[阅读次数统计]]></category>

		<guid isPermaLink="false">https://wbsl.org/?p=122</guid>
		<description><![CDATA[我这个主题默认没有阅读次数统计，所以就自己加了一个，方便也比较简单。我这个是没有插件的，个人觉得插件用的越少越<a href="https://wbsl.org/web/122.html" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>我这个主题默认没有阅读次数统计，所以就自己加了一个，方便也比较简单。我这个是没有插件的，个人觉得插件用的越少越好，不得已的情况下再用插件比较好。</p>
<p>第一步、将下面代码加到主题functions模版文件中：</p><pre class="crayon-plain-tag">//postviews   
function get_post_views ($post_id) {   
  
    $count_key = 'views';   
    $count = get_post_meta($post_id, $count_key, true);   
  
    if ($count == '') {   
        delete_post_meta($post_id, $count_key);   
        add_post_meta($post_id, $count_key, '0');   
        $count = '0';   
    }   
  
    echo number_format_i18n($count);   
  
}   
  
function set_post_views () {   
  
    global $post;   
  
    $post_id = $post -&gt; ID;   
    $count_key = 'views';   
    $count = get_post_meta($post_id, $count_key, true);   
  
    if (is_single() || is_page()) {   
  
        if ($count == '') {   
            delete_post_meta($post_id, $count_key);   
            add_post_meta($post_id, $count_key, '0');   
        } else {   
            update_post_meta($post_id, $count_key, $count + 1);   
        }   
  
    }   
  
}   
add_action('get_header', 'set_post_views');</pre><p>第二步、将调用显示阅读次数代码加到single模版适当的位置：</p><pre class="crayon-plain-tag">&lt;?php get_post_views($post -&gt; ID); ?&gt; views</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>https://wbsl.org/web/122.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
