WordPress

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(链接)
 
(未显示1个用户的185个中间版本)
第1行: 第1行:
[[Image:Wordpress-120x90.png|right]]
+
{{SeeWikipedia}}
  
==在线演示==
+
[[Image:Wordpress-90x90.png|right]]
前端:http://demo.huihoo.com/wordpress/
+
 
后台:http://demo.huihoo.com/wordpress/wp-login.php
+
WordPress
普通用户: guest/guest
+
 
管理员: admin/admin
+
==简介==
 +
WordPress 是一个使用[[PHP]]语言开发的博客平台,用户可以在支持PHP和[[MySQL]]数据库的服务器上架设自己的博客,也可以把 WordPress 当作一个[[CMS_and_Portal|内容管理系统]](CMS)来使用。
 +
 
 +
==新闻==
 +
*[https://wordpress.org/news/ WordPress News]
 +
 
 +
==版本==
 +
[https://wordpress.org/news/category/releases/ WordPress Releases] [https://wordpress.org/about/roadmap/ Roadmap]
 +
 
 +
每个小版本都有分支,如:5.6 Branch、5.5 Branch、4.9 Branch、4.8 Branch ...
 +
 
 +
[[文件:Php-90x90.png|right|PHP]]
 +
[https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/ PHP Compatibility and WordPress Versions]
 +
 
 +
* indicates “beta support”
 +
{| class="wikitable"
 +
|-
 +
! WP Version
 +
! 5.6
 +
! 7.0
 +
! 7.1
 +
! 7.2
 +
! 7.3
 +
! 7.4
 +
! 8.0
 +
|-
 +
| 5.9
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y*
 +
|-
 +
| 5.8
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y*
 +
|-
 +
| 5.7
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y*
 +
|-
 +
| 5.6
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y
 +
| Y*
 +
|}
 +
 
 +
*[https://developer.yoast.com/blog/the-2020-wordpress-and-php-8-compatibility-report/ The 2020 WordPress and PHP 8 compatibility report]
 +
 
 +
===6.x===
 +
[https://make.wordpress.org/core/6-0/ WordPress 6.0 Development Cycle]
 +
 
 +
===5.x===
 +
[https://wordpress.org/news/2020/12/simone/ WordPress 5.6 “Simone”] [https://make.wordpress.org/core/2020/11/23/wordpress-and-php-8-0/ WordPress and PHP 8.0] [https://make.wordpress.org/core/2020/11/20/wordpress-5-6-field-guide/ WordPress 5.6 Field Guide] [https://make.wordpress.org/core/2020/11/18/block-api-version-2/ Block API v2] [[Gutenberg]]
 +
 
 +
===4.x===
 +
[https://wordpress.org/news/2018/08/wordpress-4-9-8-maintenance-release/ WordPress 4.9.8 Maintenance Release]
 +
 
 +
===3.x===
 +
[[Image:wp3-1.jpg|right|thumb|菜单管理]] [[Image:wp3-2.jpg|right|thumb| 新的默认主题:"Twentyten"]]
 +
[http://blogs.huihoo.com/?p=679 WordPress 3.0“Thelonious”正式版发布]
 +
 
 +
==指南==
 +
[[文件:generatewp-logo.png|right|GenerateWP]]
 +
[https://generatewp.com/ GenerateWP] WordPress 开发者工具
  
==安装指南==
 
 
创建数据库
 
创建数据库
 
  mysqladmin -u root -p create wordpress 或
 
  mysqladmin -u root -p create wordpress 或
第24行: 第103行:
 
  运行安装向导,完成后续安装
 
  运行安装向导,完成后续安装
 
  http://localhost/wordpress/wp-admin/install.php
 
  http://localhost/wordpress/wp-admin/install.php
==Plugins==
+
 
http://wordpress.org/extend/plugins/
+
在线演示
 +
前端:http://demo.huihoo.com/wordpress/
 +
后台:http://demo.huihoo.com/wordpress/wp-login.php
 +
普通用户: guest/guest
 +
管理员: admin/admin
 +
 
 +
[https://cn.wordpress.org/support/article/installing-multiple-blogs/ 安装多个WordPress实例]
 +
 
 +
新建一个管理员, 参考[https://codex.wordpress.org/User_Levels User Levels]
 +
INSERT INTO `wordpress`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`,
 +
`user_activation_key`, `user_status`, `display_name`) VALUES ('2', 'admin', MD5('admin'), 'admin', '[email protected]',
 +
'http://www.huihoo.com/', '2020-06-07 00:00:00', '', '0', 'admin');
 +
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
 +
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_user_level', '10');
 +
 
 +
===FAQ===
 +
*[https://codex.wordpress.org/FAQ WordPress English FAQ]
 +
*[https://codex.wordpress.org/zh-cn:FAQ WordPress 中文 FAQ]
 +
 
 +
==Nginx==
 +
[https://wordpress.org/support/article/nginx/ Nginx Configure] [[Nginx]] [https://www.rosehosting.com/blog/how-to-install-wordpress-with-nginx-on-debian-10/ How to Install WordPress with Nginx on Debian 10]
 +
 
 +
==[[Apache HTTP Server|Apache2]]==
 +
[https://websiteforstudents.com/how-to-install-wordpress-with-apache2-and-lets-encrypt-ssl-tls-certificates-on-ubuntu-16-04-18-04/ How to Install WordPress with Apache2 and Let’s Encrypt SSL/TLS Certificates on Ubuntu 16.04 | 18.04]
 +
 
 +
==[[Lighttpd]]==
 +
wp rewrite
 +
 
 +
==主题==
 +
*[[OceanWP]]
 +
*[[BuddyX]]
 +
*[[Astra]]
 +
*[[Memberlite]]
 +
*[https://github.com/timber/timber Timber] with beautiful OOP code and the [https://twig.symfony.com/ Twig Template Engine]
 +
 
 +
==插件==
 +
[[文件:Woocommerce-logo.png|right|WooCommerce]]
 +
[[文件:jetpack-woocommerce-logo.png|right|Jetpack 是理想的 WooCommerce 安全插件]]
 +
[[文件:memberpress-logo.png|right|MemberPress]]
 +
[[文件:GiveWP-logo.png|right|GiveWP]]
 +
[[文件:WP-ERP-logo.png|right|WP ERP]]
 +
[[文件:Lifterlms-logo.png|right|LifterLMS]]
 +
 
 +
[https://wordpress.org/plugins WordPress Plugins]
 +
*[https://www.tipsandtricks-hq.com/list-of-the-best-and-must-use-wordpress-plugins-535 List of the Best and Must Use WordPress Plugins]
 +
 
 +
===开发===
 +
*[[FakerPress]]
 +
*[https://github.com/CMB2/CMB2 CMB2]
 +
 
 +
===LMS===
 +
*[https://thimpress.com/ LearnPress] #1 WordPress LMS of all time [https://github.com/LearnPress LearnPress @ GitHub]
 +
*[[LifterLMS]] Best WordPress LMS Plugin [https://github.com/gocodebox LifterLMS @ GitHub]
 +
*[https://senseilms.com/ Sensei LMS] An Automattic Airline [https://github.com/Automattic/sensei Sensei LMS @ GitHub]
 +
*[https://www.learndash.com/ LearnDash]
 +
*[[TutorLMS]] [https://docs.themeum.com/tutor-lms/tutorials/importing-tutor-demo-data/ Importing Demo Data]
 +
 
 +
===电子商务===
 +
*[[WooCommerce]]
 +
*[[Booster]]
 +
 
 +
===支付===
 +
*[[GiveWP]] The #1 Donation Plugin for WordPress. [https://github.com/impress-org/givewp GiveMP @ GitHub]
 +
 
 +
===ERP/CRM===
 +
*[[WP ERP]]
 +
 
 +
===评论===
 +
内置评论 [https://wordpress.org/support/article/comments-in-wordpress/ Comments in WordPress] 相关 wp_commentmeta、wp_comments 表 
 +
* [https://akismet.com/ Akismet] 垃圾评论过滤器
 +
 
 +
===论坛/问答===
 +
*[https://wordpress.org/plugins/wpforo/ wpForo Forum]
 +
*[[bbPress]]
 +
*[[AnsPress]]
 +
 
 +
===会员网络===
 +
[[文件:BuddyPress-logo.png|right|BuddyPress]]
 +
 
 +
membership & group & [[social network]] & subscription
 +
 
 +
At [https://buddydev.com BuddyDev] We help you build Great Communities with WordPress & BuddyPress!
 +
*[[BuddyPress]]
 +
*[[BuddyBoss]] [https://www.buddyboss.com/buddyboss-vs-buddypress/ BuddyBoss VS BuddyPress]
 +
*[[GamiPress]]
 +
*[[MemberPress]]
 +
*[[WP-Members]]
 +
*[[Paid Memberships Pro]]
 +
 
 +
===IAM===
 +
[[identity management|Identity and Access Management]], [https://wordpress.org/support/article/roles-and-capabilities/ User Management - Roles and Capabilities] 有六个预设角色:Super Admin, Administrator, Editor, Author, Contributor and Subscriber.
 +
*[https://plugins.miniorange.com/saml-single-sign-on-sso-wordpress-using-jboss-keycloak SAML Single Sign-On (SSO) for WordPress using Keycloak as IDP] [[Keycloak]]
 +
 
 +
===社交集成===
 +
Social Share, Social Login and Social Comments
 +
*[https://wordpress.org/plugins/super-socializer/ Super Socializer]
 +
*[https://wpdiscuz.com/ wpDiscuz] #1 WordPress Comment Plugin
 +
*[https://github.com/janboddez/share-on-mastodon Share on Mastodon] Automatically share WordPress posts on [[Mastodon]].
 +
 
 +
===媒体管理===
 +
[https://wordpress.org/support/article/media-library-screen/ Media Management - Media library screen] [https://make.wordpress.org/core/components/media/ Media component 包含 Upload, Embeds, Gallery 三个子组件]
 +
*导入各种媒体资源,也包含其他 CMS 的内容导入 [https://wordpress.org/support/article/importing-content/ Importing Content]
 +
*[https://wordpress.org/plugins/wp-all-import/ Import any XML or CSV File to WordPress] [https://wordpress.org/plugins/really-simple-csv-importer/ Really Simple CSV Importer]
 +
*[[rtMedia]] #1 WordPress media plugin
 +
*[https://wordpress.org/plugins/mediapress/ MediaPress] is a modern media gallery solution for WordPress & [[BuddyPress]]. [https://github.com/buddydev/mediapress MediaPress @ GitHub]
 +
*[https://wordpress.org/plugins/nextgen-gallery/ NextGEN Gallery]
 +
*将 [[Nextcloud]] 作为 WordPress 的 Media Center.
 +
*将个人 [[Twitter]] 内容导入 WordPress [https://wordpress.org/plugins/twitter-tools/ Tools for Twitter]
 +
*[https://www.getid3.org/ getID3] 从 MP3 和其他多媒体文件格式中提取有用信息
 +
*[https://developer.wordpress.com/docs/photon/ Photon] 是一个为 [[Jetpack]] 连接的 WordPress 网站提供的图像加速(acceleration)和修改(modification)服务。
 +
 
 +
===文档知识库===
 +
*[https://github.com/boonebgorges/buddypress-docs BuddyPress Docs]
 +
 
 +
===编辑器===
 +
[https://wordpress.org/plugins/browse/blocks/ block-based editor] 网站构建
 +
[[文件:Beaver-Builder-logo.png|right|Beaver Builder]]
 +
*[[Beaver Builder]]
 +
*[[Getwid]]
 +
*[[gutenberg]]
 +
*[https://wpforms.com/ WPForms]
 +
*[[Elementor]]
 +
*[https://github.com/CalderaWP/Caldera-Forms Caldera-Forms]
 +
 
 +
===广告营销===
 +
[[文件:Yoast-SEO-logo.png|right|Yoast SEO]]
 +
[[文件:Wp-revive-adserver.png|right|WP-Revive Adserver]]
 +
*[[Yoast SEO]] the #1 WordPress [[SEO]] plugin
 +
*[https://getwemail.io/ weMail] A Simplified email marketing solution for WordPress.
 +
*[[Revive Adserver]] [https://wordpress.org/plugins/wp-revive-adserver/ WP-Revive Adserver]
 +
 
 +
===订阅/邮件===
 +
*[https://wordpress.org/plugins/mailoptin MailOptin]
 +
*[[ConvertKit]]
 +
*[https://github.com/mailpoet/mailpoet MailPoet]
 +
 
 +
===多语言===
 +
*[https://wordpress.org/plugins/polylang/ Polylang]
 +
*[[GlotPress]]
 +
*[https://wpml.org/ WPML]
 +
 
 +
===统计分析===
 +
[[文件:Matomo-logo.png|right|Matomo]]
 +
*[[Matomo]]
 +
 
 +
===系统/安全===
 +
*[[jetpack]]
 +
*[[wordfence]]
 +
*[https://wordpress.org/plugins/updraftplus/ UpdraftPlus] WordPress Backup Plugin
 +
*[https://wordpress.org/plugins/duplicator/ Duplicator] WordPress Migration Plugin
 +
*[https://cn.wordpress.org/plugins/two-factor/ Two-Factor] Plugin
 +
*通过 [https://api.wordpress.org/secret-key/1.1/salt/ Authentication unique keys and salts] 生成 WordPress 站点验证唯一的密钥和盐(salt)。
 +
 
 +
===SaaS/Cloud===
 +
[[文件:mainwp-logo.png|right|MainWP]]
 +
*[[WordPress cloud]] 多租户、备份、存储和安全是主要形式
 +
*[https://mainwp.com/ MainWP] Manage Multiple WordPress Sites [https://github.com/mainwp MainWP @ GitHub]
 +
*[https://backwpup.com/ BackWPup] Backup Plugin
 +
 
 +
===ECM & Enterprise===
 +
[[文件:WP-CLI-logo.png|right|WP-CLI]]
 +
*[https://wpvip.com/ WordPress VIP] The Enterprise Content Management Platform and Enterprise ecosystem.
 +
*[https://wp-cli.org/ WP-CLI]
 +
 
 +
==维护==
 +
因为 WordPress 会被很多拉圾 comment 侵袭, 所以要定期情理一下数据库, 但一定要小心操作.
 +
delete from wp_comments where comment_post_ID = 33;   
 +
delete from wp_comments where comment_post_ID = 33 and comment_ID ! = 20;
 +
delete from wp_comments where comment_post_ID = 60 and comment_ID != 20 and comment_ID !=21;
 +
 
 +
wordpress/wp-content/uploads/php.log 会不断产生日志,我 echo > php.log 后,回收了近1.4G的空间。 (2012.06.13)
 +
 
 
==升级==
 
==升级==
 
  升级到 2.1
 
  升级到 2.1
第37行: 第287行:
 
  然后运行新版本的update, 完成升级。这样做的风险比较小。老版本也能运行,这样可以在新版本上根据老版本一点点修改。
 
  然后运行新版本的update, 完成升级。这样做的风险比较小。老版本也能运行,这样可以在新版本上根据老版本一点点修改。
 
  Step 5: Reactivate Plugins one by one
 
  Step 5: Reactivate Plugins one by one
==WordPress MU==
+
 
 +
升级出错:
 +
WordPress database error: [Unknown column 'user_nickname' in 'field list']
 +
SELECT ID, user_nickname, user_nicename FROM wp_users
 +
处理方式:
 +
alter table wp_users add column user_nickname varchar(250);
 +
Fatal error: Cannot access empty property in wordpress/wp-admin/upgrade-functions.php on line 646
 +
 
 +
Edit wp-admin/upgrade-functions.php, and edit this line (around line 646):
 +
$all_options->{$option->option_name} = stripslashes($option->option_value);
 +
To read:
 +
if ($option->option_name) $all_options->{$option->option_name} = stripslashes($option->option_value);
 +
 
 +
返回可登录进入Admin, 也可能包含以下错误:
 +
 
 +
WordPress database error: [Table 'wordpress.wp_linkcategories' doesn't exist] SELECT cat_id, cat_name FROM wp_linkcategories
 +
==2.5到2.8.2==
 +
准备从2.5 Update to 2.8.2
 +
 
 +
还是采用逐步升级的方式:
 +
 
 +
2.5.1 -> 2.6
 +
 
 +
2.6 -> 2.7
 +
 
 +
2.7 -> 2.8.2
 +
==2.1到2.5==
 +
从2.1升级到2.5, 目前 http://blogs.huihoo.com 使用的是2.1的wordpress, 而最新版是2.5,中间有2.1.1, 2.1.2, 2.1.3, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.3, 2.3.1, 2.3.2, 2.3.3 [http://wordpress.org/download/release-archive/ 版本],我们将采取覆盖老版本、逐步升级的策略。
 +
 
 +
2.1 -> 2.1.3 OK:)
 +
 
 +
2.1.3 -> 2.2 OK:)
 +
 +
2.2 -> 2.2.3 OK:)
 +
 
 +
2.2.3-> 2.3 OK:)
 +
 
 +
2.3 -> 2.3.3 OK:)
 +
 
 +
2.3.3 -> 2.5 OK:)
 +
 
 +
终于从 2.1 升级到 2.5
 +
==多站点/多用户==
 +
请关注 [[WordPress cloud]]
 +
 
 +
===多站点===
 +
一个账号登录多个部署的站点,多域名部署,如:qa.huihoo.com, forum.huihoo.com, blog.huihoo.com ...
 +
 
 +
===WordPress MU===
 +
{{SeeWikipediaChinese}}
 +
 
 
WordPress MU : WordPress的多用户版
 
WordPress MU : WordPress的多用户版
  
第66行: 第366行:
 
  | wp_2_posts          |
 
  | wp_2_posts          |
  
==相关链接==
+
为每个用户创建二级域名,如: allen.huihoo.com, tom.huihoo.com
*http://wordpress.org/
+
*http://wordpress.com/
+
*http://wiki.wordpress.org/
+
*WordPress英文文档 http://codex.wordpress.org/
+
*WordPress中文文档 http://codex.wordpress.org.cn/
+
*WordPress Plugins Database - http://wp-plugins.net/
+
*WordPress Plugin Repository - http://dev.wp-plugins.org/
+
*WordPress中文论坛 http://wordpress.org.cn/forums/
+
  
==书籍==
+
==项目==
[[Image:WordPress 2_Visual_Quickstart_Guide.jpg]]
+
*[https://github.com/WordPress/WordPress WordPress @ GitHub]
 +
*[[WooCommerce]]
 +
*[https://github.com/10up/ElasticPress ElasticPress] search and query engine for WordPress. [https://github.com/10up/Engineering-Best-Practices/ 10up Engineering Best Practices]
 +
*[http://redux.io/ Redux Options Framework] [https://github.com/reduxframework/redux-framework @ GitHub]
 +
*[https://github.com/tombenner/wp-mvc WP MVC] An MVC framework for WordPress
 +
*[https://github.com/ampproject/amp-wp AMP Plugin for WordPress]
 +
*[https://github.com/simplepie/simplepie/ SimplePie]
  
Paperback: 304 pages
+
==API==
 +
*[https://developer.wordpress.org/rest-api/ REST API Handbook] https://api.w.org/
 +
*[https://github.com/WP-API WordPress REST API Team @ GitHub]
 +
*[https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-api.php REST API functions]
 +
*[https://github.com/wp-cli/restful wp-cli/restful]
  
Publisher: Peachpit Press; 1ST edition (June 29, 2006)
+
==开发者==
 +
[https://make.wordpress.org/updates/team-reps/ Current Team Reps]
 +
*[https://developer.wordpress.org/ WordPress Developer Resources] [https://developer.wordpress.org/reference/ WordPress Code Reference]
 +
*[https://github.com/wp-cli WP-CLI]
 +
*lead developers are [https://profiles.wordpress.org/helen/ Helen Hou-Sandi], [https://profiles.wordpress.org/dd32/ dd32], [https://profiles.wordpress.org/markjaquith/ Mark Jaquith], [https://profiles.wordpress.org/nacin/ Andrew Nacin], and [https://profiles.wordpress.org/azaozz/ Andrew Ozz].
 +
*[https://developer.wordpress.org/ WordPress Developer Resources]
 +
*[https://make.wordpress.org/core/ Make WordPress Core] [https://make.wordpress.org/core/components/ WordPress Core Components]
  
Language: English
+
==服务商==
 +
[[文件:WordPress-Hosting-Platform.png|right|WordPress 服务商]]
 +
*[https://wpengine.com/support-browse-all/ WPEngine] The world’s #1 managed WordPress hosting platform.
 +
*[https://github.com/BuddyDev/ BuddyDev] We help you build Great Communities with WordPress & [[BuddyPress]]!
 +
*[https://profiles.wordpress.org/abuhayat/ bPlugins_LLC]
 +
*[https://wbcomdesigns.com/ Wbcom Designs] WordPress Services for Online Communities [[BuddyPress]]
 +
*[https://pantheon.io/ Pantheon SaaS Platform]
 +
*[https://www.bluehost.com/ Bluehost] is one of the top recommended WordPress providers by WordPress.org
 +
*[https://www.siteground.com/ SiteGround Hosting]
 +
*[https://wpengine.com/ WP Engine]
 +
*[https://www.cloudways.com/en/ Cloudways] Managed Cloud Hosting Platform
  
ISBN: 0321450191
+
==书籍==
 +
*[https://github.com/WordPress/book Milestones] The Story of WordPress
  
==成功应用==
+
==案例==
 +
[https://wordpress.org/showcase/ WordPress Website Showcase]
 +
*[https://blog.mozilla.org/ Mozilla Blog] [[Mozilla]]
 +
*[https://openid.net/ OpenID] [[OpenID]]
 +
*[https://www.gnome.org/ GNOME] Powered by WordPress, [[WooCommerce]], and [https://oceanwp.org/ OceanWP].
 +
*[http://nginx.com/ NGINX] [[Nginx]]
 +
*[https://blogs.adobe.com/ Adobe Blog]
 +
*[https://eclipse-foundation.blog/ Life at Eclipse]
 +
*[https://news.microsoft.com/ Microsoft News Center]
 
*http://blog.manboo.info
 
*http://blog.manboo.info
 
*http://wordpress.com/  
 
*http://wordpress.com/  
 
*http://edublogs.org/
 
*http://edublogs.org/
 
*http://www.ebooksportal.org/
 
*http://www.ebooksportal.org/
[[category:Blog]]
+
*http://sw-guide.de/
 +
*[http://songshuhui.net/ 科学松鼠会]
 +
 
 +
==图集==
 +
<gallery widths=100px heights=100px perrow=6>
 +
image:wordpress-themes-design.png|Wordpress的主题模板结构
 +
image:installing-multiple-wordpresses.jpg|多实例
 +
image:wordpress-install-plugin.png|安装插件
 +
image:wordpress-buddypress-components.png|BuddyPress
 +
image:mediapress-media-type.png|MediaPress
 +
image:WordPress-Media-library.png|媒体库
 +
image:TutorLMS.png|TutorLMS
 +
image:senseilms-content-hierarchy.png|SenseiLMS课程内容层次
 +
image:SenseiLMS-Quiz-Workflow.png|SenseiLMS测试工作流
 +
image:weMail.png|weMail
 +
image:anspress.png|AnsPress
 +
image:CiviCRM-on-WordPress.png|CiviCRM on WordPress
 +
image:WordPress-integration-CiviCRM.png|集成CiviCRM
 +
image:CiviCRM-WordPress-Access-Control.png|WordPress访问控制
 +
image:wordress-wp-json.png|WP REST API
 +
image:WordPress-VIP-platform-infrastructure.png|WordPress VIP
 +
</gallery>
 +
 
 +
==链接==
 +
*http://wordpress.org/
 +
*http://wordpress.com/
 +
*[https://automattic.com/ Automattic] WordPress背后的商业公司,成立于2005年8月,创始人兼总裁 [https://ma.tt/ Matt Mullenwe] [https://distributed.blog/ The future of work is here.]
 +
*[https://github.com/Automattic Automattic @ GitHub]
 +
*http://wiki.wordpress.org/
 +
*[http://codex.wordpress.org/ WordPress 英文文档]
 +
*[http://codex.wordpress.org.cn/ WordPress 中文文档]
 +
*[http://wp-plugins.net/ WordPress Plugins Database]
 +
*[http://dev.wp-plugins.org/ WordPress Plugin Repository]
 +
*[http://wordpress.org.cn/forums/ WordPress 中文论坛]
 +
 
 +
[[category:WordPress]]
 +
[[category:CMS]]
 +
[[category:blog]]
 +
[[category:PHP]]
 +
[[category:Huihoo Foundation]]

2024年1月17日 (三) 03:59的最后版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 WordPress Thanks, Wikipedia.
Wordpress-90x90.png

WordPress

目录

[编辑] 简介

WordPress 是一个使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设自己的博客,也可以把 WordPress 当作一个内容管理系统(CMS)来使用。

[编辑] 新闻

[编辑] 版本

WordPress Releases Roadmap

每个小版本都有分支,如:5.6 Branch、5.5 Branch、4.9 Branch、4.8 Branch ...

PHP

PHP Compatibility and WordPress Versions

  • indicates “beta support”
WP Version 5.6 7.0 7.1 7.2 7.3 7.4 8.0
5.9 Y Y Y Y Y Y Y*
5.8 Y Y Y Y Y Y Y*
5.7 Y Y Y Y Y Y Y*
5.6 Y Y Y Y Y Y Y*

[编辑] 6.x

WordPress 6.0 Development Cycle

[编辑] 5.x

WordPress 5.6 “Simone” WordPress and PHP 8.0 WordPress 5.6 Field Guide Block API v2 Gutenberg

[编辑] 4.x

WordPress 4.9.8 Maintenance Release

[编辑] 3.x

菜单管理
新的默认主题:"Twentyten"

WordPress 3.0“Thelonious”正式版发布

[编辑] 指南

GenerateWP

GenerateWP WordPress 开发者工具

创建数据库

mysqladmin -u root -p create wordpress 或
mysql>create database wordpress;
mysql>GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'wordpress';
mysql>flush privileges;

设置 wp-config.php

cp wp-config-sample.php wp-config.php
// ** MySQL settings ** //
define('DB_NAME', 'wordpress');     // The name of the database
define('DB_USER', 'wordpress');     // Your MySQL username
define('DB_PASSWORD', 'wordpress'); // ...and password
define('DB_HOST', 'localhost');     // 99% chance you won't need to change this value
运行安装向导,完成后续安装
http://localhost/wordpress/wp-admin/install.php

在线演示

前端:http://demo.huihoo.com/wordpress/
后台:http://demo.huihoo.com/wordpress/wp-login.php
普通用户: guest/guest
管理员: admin/admin

安装多个WordPress实例

新建一个管理员, 参考User Levels

INSERT INTO `wordpress`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`,
`user_activation_key`, `user_status`, `display_name`) VALUES ('2', 'admin', MD5('admin'), 'admin', '[email protected]', 
'http://www.huihoo.com/', '2020-06-07 00:00:00', , '0', 'admin');
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '2', 'wp_user_level', '10');

[编辑] FAQ

[编辑] Nginx

Nginx Configure Nginx How to Install WordPress with Nginx on Debian 10

[编辑] Apache2

How to Install WordPress with Apache2 and Let’s Encrypt SSL/TLS Certificates on Ubuntu 16.04 | 18.04

[编辑] Lighttpd

wp rewrite

[编辑] 主题

[编辑] 插件

WooCommerce
Jetpack 是理想的 WooCommerce 安全插件
MemberPress
GiveWP
WP ERP
LifterLMS

WordPress Plugins

[编辑] 开发

[编辑] LMS

[编辑] 电子商务

[编辑] 支付

[编辑] ERP/CRM

[编辑] 评论

内置评论 Comments in WordPress 相关 wp_commentmeta、wp_comments 表

[编辑] 论坛/问答

[编辑] 会员网络

BuddyPress

membership & group & social network & subscription

At BuddyDev We help you build Great Communities with WordPress & BuddyPress!

[编辑] IAM

Identity and Access Management, User Management - Roles and Capabilities 有六个预设角色:Super Admin, Administrator, Editor, Author, Contributor and Subscriber.

[编辑] 社交集成

Social Share, Social Login and Social Comments

[编辑] 媒体管理

Media Management - Media library screen Media component 包含 Upload, Embeds, Gallery 三个子组件

[编辑] 文档知识库

[编辑] 编辑器

block-based editor 网站构建

Beaver Builder

[编辑] 广告营销

Yoast SEO
WP-Revive Adserver

[编辑] 订阅/邮件

[编辑] 多语言

[编辑] 统计分析

Matomo

[编辑] 系统/安全

[编辑] SaaS/Cloud

MainWP

[编辑] ECM & Enterprise

WP-CLI

[编辑] 维护

因为 WordPress 会被很多拉圾 comment 侵袭, 所以要定期情理一下数据库, 但一定要小心操作.

delete from wp_comments where comment_post_ID = 33;    
delete from wp_comments where comment_post_ID = 33 and comment_ID ! = 20; 
delete from wp_comments where comment_post_ID = 60 and comment_ID != 20 and comment_ID !=21;

wordpress/wp-content/uploads/php.log 会不断产生日志,我 echo > php.log 后,回收了近1.4G的空间。 (2012.06.13)

[编辑] 升级

升级到 2.1
For all upgrade paths, such as 1.5.2 to 2.1, or 2.0, 2.0.1, 2.0.2, or 2.0.3, 2.0.4, 2.0.5, 2.06, and  2.0.7 to 2.1, 
http://codex.wordpress.org/Upgrading_WordPress#How_to_Upgrade_in_Five_Steps
Step 1: Backup Database Tables and Files including .htaccess
Step 2: Deactivate Plugins
Step 3: Overwrite Files
这一步我们没有采用删除文件的方式,而是采用安装新版 WordPress 的方式, 将老版本的 wp-config.php copy过来,
Step 4: Run the upgrade script
然后运行新版本的update, 完成升级。这样做的风险比较小。老版本也能运行,这样可以在新版本上根据老版本一点点修改。
Step 5: Reactivate Plugins one by one

升级出错:

WordPress database error: [Unknown column 'user_nickname' in 'field list']
SELECT ID, user_nickname, user_nicename FROM wp_users

处理方式:

alter table wp_users add column user_nickname varchar(250);

Fatal error: Cannot access empty property in wordpress/wp-admin/upgrade-functions.php on line 646

Edit wp-admin/upgrade-functions.php, and edit this line (around line 646):

$all_options->{$option->option_name} = stripslashes($option->option_value);
To read:
if ($option->option_name) $all_options->{$option->option_name} = stripslashes($option->option_value);

返回可登录进入Admin, 也可能包含以下错误:

WordPress database error: [Table 'wordpress.wp_linkcategories' doesn't exist] SELECT cat_id, cat_name FROM wp_linkcategories

[编辑] 2.5到2.8.2

准备从2.5 Update to 2.8.2

还是采用逐步升级的方式:

2.5.1 -> 2.6

2.6 -> 2.7

2.7 -> 2.8.2

[编辑] 2.1到2.5

从2.1升级到2.5, 目前 http://blogs.huihoo.com 使用的是2.1的wordpress, 而最新版是2.5,中间有2.1.1, 2.1.2, 2.1.3, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.3, 2.3.1, 2.3.2, 2.3.3 版本,我们将采取覆盖老版本、逐步升级的策略。

2.1 -> 2.1.3 OK:)

2.1.3 -> 2.2 OK:)

2.2 -> 2.2.3 OK:)

2.2.3-> 2.3 OK:)

2.3 -> 2.3.3 OK:)

2.3.3 -> 2.5 OK:)

终于从 2.1 升级到 2.5

[编辑] 多站点/多用户

请关注 WordPress cloud

[编辑] 多站点

一个账号登录多个部署的站点,多域名部署,如:qa.huihoo.com, forum.huihoo.com, blog.huihoo.com ...

[编辑] WordPress MU

Wikipedia-35x35.png 您还可以在维基百科上了解到此条目的中文信息 WordPress 感谢, 维基百科.

WordPress MU : WordPress的多用户版

安装完成后,用 admin登录,

可打开数据库,修改 admin 的密码
update wp_users set user_pass="1a1dc91c907325c69271ddf0c944bc72" where ID=1;
这个是pass的md5值,因此
用 admin/pass 就可以登录成功 :)

WordPress MU on Lighttpd

WordPress MU 会为每个用户建立单独使用的一套表,如 id=1, id=2 的用户

| wp_1_categories     |
| wp_1_comments       |
| wp_1_link2cat       |
| wp_1_links          |
| wp_1_options        |
| wp_1_post2cat       |
| wp_1_postmeta       |
| wp_1_posts          |
| wp_2_categories     |
| wp_2_comments       |
| wp_2_link2cat       |
| wp_2_links          |
| wp_2_options        |
| wp_2_post2cat       |
| wp_2_postmeta       |
| wp_2_posts          |

为每个用户创建二级域名,如: allen.huihoo.com, tom.huihoo.com

[编辑] 项目

[编辑] API

[编辑] 开发者

Current Team Reps

[编辑] 服务商

WordPress 服务商

[编辑] 书籍

[编辑] 案例

WordPress Website Showcase

[编辑] 图集

[编辑] 链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱