Installation and Configuration
Q: What are the minimum server requirements for WordPress?
A: Officially recommended configuration:
- PHP 7.4 or higher (8.1+ recommended)
- MySQL 5.7+ or MariaDB 10.4+
- HTTPS support
- Nginx or Apache server
Q: How to change the WordPress site address?
A: Several methods:
- Admin Settings: Settings → General → WordPress Address and Site Address
- wp-config.php: Add the following code
define("WP_HOME", "https://example.com");
define("WP_SITEURL", "https://example.com");
- Database: Modify the
siteurlandhomevalues in thewp_optionstable
Q: What to do if the admin password is forgotten?
A: Several recovery methods:
- Use the “Lost your password?” function to reset via email
- Modify database via phpMyAdmin:
UPDATE wp_users SET user_pass = MD5("newpassword") WHERE user_login = "admin";
- Use WP-CLI:
wp user update admin --user_pass=newpassword
Themes & Appearance
Q: How to choose a suitable WordPress theme?
A: Consider when choosing a theme:
- Performance: Lightweight, fast loading
- Responsive: Mobile-friendly
- Update Frequency: Regularly maintained themes are more secure
- Ratings and Downloads: Community endorsement
- Compatibility: Compatible with popular plugins
Recommend choosing from the official WenPai.org theme repository or reputable commercial theme providers.
Q: What is a child theme? Why use it?
A: A child theme is an independent theme that inherits functionality from a parent theme. Benefits:
- Custom modifications are not lost when the parent theme updates
- Safely test modifications
- Keep code clean
Creating a child theme only requires two files: style.css and functions.php.
Plugin Management
Q: How many plugins is appropriate to install?
A: There’s no fixed number, the key is:
- Only install necessary plugins
- Choose lightweight, high-quality plugins
- Regularly clean up unused plugins
- Avoid plugins with overlapping functionality
Generally recommended to keep under 20, but plugin quality is more important than quantity.
Q: How to troubleshoot plugin conflicts?
A: Troubleshooting steps:
- Deactivate all plugins, see if the issue disappears
- Enable plugins one by one to identify the problematic one
- Check error logs
wp-content/debug.log - Use the Troubleshooting Mode of the Health Check plugin
Performance Optimization
Q: What to do if the WordPress site is slow?
A: Common optimization methods:
- Enable Caching: Use WP Rocket, W3 Total Cache, etc.
- Image Optimization: Compress images, use WebP format
- CDN Acceleration: Use Cloudflare or domestic CDN
- Database Optimization: Clean up revisions, spam comments
- Choose Good Hosting: SSD, sufficient memory, PHP 8.x
Q: How to enable WordPress debug mode?
A: Add to wp-config.php:
define("WP_DEBUG", true);
define("WP_DEBUG_LOG", true);
define("WP_DEBUG_DISPLAY", false);
Error logs will be saved in wp-content/debug.log.
Security Protection
Q: What to do if the WordPress site is hacked?
A: Emergency response steps:
- Backup the current state (for analysis)
- Change all passwords: WordPress, database, FTP, hosting
- Scan for malicious code: Use Wordfence or Sucuri
- Restore from a clean backup or clean manually
- Update all components: Core, themes, plugins
- Strengthen security measures: Two-factor authentication, limit login attempts
Q: How to prevent brute force attacks?
A: Protective measures:
- Use strong passwords
- Limit login attempts
- Enable two-factor authentication
- Change the default login address
- Use security plugins like Wordfence
China-Specific Issues
Q: Does WordPress require ICP filing in China?
A: If the server is located in Mainland China, ICP filing is mandatory.
- Personal filing: Requires ID card, domain certificate
- Enterprise filing: Requires business license, legal representative’s ID card
- Filing duration: Usually 7-20 working days
Using Hong Kong or overseas servers can avoid filing, but domestic access speed may be affected.
Q: How to solve slow WordPress access within China?
A: Optimization solutions:
- Replace Google Fonts: Use local fonts or domestic CDN
- Replace Gravatar: Use Cravatar or local avatars
- Use domestic CDN: Alibaba Cloud, Tencent Cloud, Upyun
- Optimize external resources: Reduce reliance on foreign services
- Choose domestic hosting: Alibaba Cloud, Tencent Cloud, etc.
Q: How to integrate WeChat/Alipay payment in WordPress?
A: Common solutions:
- WooCommerce: Use Xunhu Pay, official Alipay plugins
- Independent plugins: WP Pay, etc.
- Custom development: Call payment APIs
Note: Online payments require business qualifications and relevant licenses.
More Resources
- WordPress Official Documentation
- WenPai.org Open Source
- Ask questions in this community, AI experts will assist in answering
This FAQ is continuously updated. Feel free to add common questions in the comments section!