Jetpack 适合你的网站吗?

选择合适的场景最重要

因为网络原因,jetpack调用的资源来自国外,连接不畅顺是很正常的。这一点很多国外国家亦是如此。特别wordpress内嵌了gutenberg后更明显。

首先,考虑服务器地理位置。

国内服务器的,最好不要用。已经有大量文章的就更不要用了。

国外服务器的,自己不在网络特区的或者没特别上网资源的不建议使用。

其次,考虑网站类型和受众

额外阅读:考虑jetpack带来的便利和选择应用

什么样的网站适合?几乎都适合。

考虑受众

1.阅读类 主要面向国内,那就不适合。

2. 外贸企业 主要面向国外,适合。

最后,考虑特殊情况。

什么样的特殊情况?

比如你服务器在海外地区(比如说香港阿里云),作者在国内,网站采用https协议。这样的通常一到晚上上网高峰期就堵塞在网络上。

假如还采用了wordpress.com的桌面app,那么网站可能短时间里就瘫痪了。具体原因很多。你可以采用http协议缓解,或者不用wordpress的app。

当然,无论你采用https还是http,在线编辑是没有问题的。没有关闭gutenbrg的速度会稍慢。

所以这时候jetpack主要的作用只是自动post到sns平台。离线发布的便利不存在了。

假如你购买了jetpack的服务,会多一些高级服务。比如每日备份什么都。企业站那样不怎么更新的不太需要。创作类型的相当于加道保险。

解决宝塔面板Apache报错一例AH00058

调整swap后重启,发现网站不能访问。

进入面板发现Apache没有启动。点击重启报错,代码AH00058.

具体表现:

apache无法启动。重启时提示

(20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid

AH00059: Remove it before continuing if it is corrupted.

按照提示

只要删除 server/apache/logs下面的httpd.pid文件即可重启成功

WordPress 模板说明

index.php

The main template file. It is required in all themes.

style.css

The main stylesheet. It is required in all themes and contains the information header for your theme.

rtl.css

The right-to-left stylesheet is included automatically if the website language’s text direction is right-to-left.

comments.php

The comments template.

front-page.php

The front page template is always used as the site front page if it exists, regardless of what settings on Admin > Settings > Reading.

home.php

The home page template is the front page by default. If you do not set WordPress to use a static front page, this template is used to show latest posts.

header.php

The header template file usually contains your site’s document type, meta information, links to stylesheets and scripts, and other data.

singular.php

The singular template is used for posts when single.php is not found, or for pages when page.php are not found. If singular.php is not found, index.php is used.

single.php

The single post template is used when a visitor requests a single post.

single-{post-type}.php

The single post template used when a visitor requests a single post from a custom post type. For example, single-book.php would be used for displaying single posts from a custom post type named book. The index.php is used if a specific query template for the custom post type is not present.

archive-{post-type}.php

The archive post type template is used when visitors request a custom post type archive. For example, archive-books.php would be used for displaying an archive of posts from the custom post type named books. The archive.php template file is used if the archive-{post-type}.php is not present.

page.php

The page template is used when visitors request individual pages, which are a built-in template.

page-{slug}.php

The page slug template is used when visitors request a specific page, for example one with the “about” slug (page-about.php).

category.php

The category template is used when visitors request posts by category.

tag.php

The tag template is used when visitors request posts by tag.

taxonomy.php

The taxonomy term template is used when a visitor requests a term in a custom taxonomy.

author.php

The author page template is used whenever a visitor loads an author page.

date.php

The date/time template is used when posts are requested by date or time. For example, the pages generated with these slugs:

http://example.com/blog/2014/

http://example.com/blog/2014/05/

http://example.com/blog/2014/05/26/

archive.php

The archive template is used when visitors request posts by category, author, or date. Note: this template will be overridden if more specific templates are present like category.php, author.php, and date.php.

search.php

The search results template is used to display a visitor’s search results.

attachment.php

The attachment template is used when viewing a single attachment like an image, pdf, or other media file.

image.php

The image attachment template is a more specific version of attachment.php and is used when viewing a single image attachment. If not present, WordPress will use attachment.php instead.

404.php

The 404 template is used when WordPress cannot find a post, page, or other content that matches the visitor’s request.

解决wordpress多站点用离线发布的办法

具体原因不用深究。网上也有人说到https或者权限或者修改代码,其实都不需要。

原创解决方案,谢绝转载不带出处。

以下为用office word 2016发布wordprsss的连接方式。同样适用于office word 2013

错误表现:

1.开启多站点后,重新用xmlrpc连接,无法注册。

2.已经注册好的连接不受影响

解决步骤:

  1. 随便连接一个可以注册的账户(以下称为桥)
  2. 然后修改桥的账户连接网址和账号密码,点确定,不用管无法注册的提示,点取消

3.正常使用修改后的账户即可

ps.假如想要网站名保持一致,可以事先把桥的网站名改成你需要的

假如你要用wlw或者其它类似软件。

参考上面的步骤。修改对应的用户名、密码、网址、网站名称即可。

例如wlw,你需要进入到注册表里面去修改帐户设置。

wlw比word好用的地方就是可以设置tag和自动加链接

WordPress简介

WordPress免费自由开源软件,这份免费开源同时也是无价的。
它有多自由?

  1. 可以出于任何理由使用。
  2. 可以自由修改功能。
  3. 可以自由分发。
  4. 可以自由分布自己修改后的版本。

最新版本:v.5.2.1 下载链接:https://wordpress.org/latest.zip WordPress
官网:www.wordpress.org
基本要求:PHP 7.3+版本 MySQL 版本 5.6+ or MariaDB 版本 10.0+ HTTPS支持

它可以做什么类型的网站?

  1. 博客
  2. 企业网站
  3. 电商网站
  4. 资讯网站
  5. O2O
  6. 黄页
  7. 等等

它有什么优势?

  1. 全世界无数爱好者共同维护源码
  2. 无数优势的插件和主题免费使用
  3. 充分的自由
  4. 充分的技术支持
  5. 很容易找到专业的服务商

它有什么劣势?

  1. 对主机要求比较高
  2. 比较吃主机资源
  3. 容易受攻击
  4. 在国内需要特别处理一下