Installation and Configuration
Q: What are the minimum server requirements for WordPress?
A: Official WordPress recommended configuration:
- PHP 7.4 or higher (PHP 8.1+ recommended)
- MySQL 5.7+ or MariaDB 10.4+
- HTTPS support
- Nginx or Apache web server
Q: How do I change my WordPress site URL?
A: Several methods are available:
- Admin Dashboard: Settings → General → WordPress Address (URL) and Site Address (URL)
- wp-config.php: Add the following lines:
define("WP_HOME", "https://example.com");
define("WP_SITEURL", "https://example.com");
- Database: Update the
siteurlandhomevalues in thewp_optionstable
Q: I forgot my administrator password — what should I do?
A: Several recovery options exist:
- Use the “Lost your password?” feature to reset via email
- Modify the database using phpMyAdmin:
UPDATE wp_users SET user_pass = MD5("new_password") WHERE user_login = "admin";
- Use WP-CLI:
wp user update admin --user_pass=new_password
Themes and Appearance
Q: How do I choose a suitable WordPress theme?
A: Consider the following when selecting a theme:
- Performance: Lightweight, fast-loading themes
- Responsive design: Mobile-friendly layout
- Update frequency: Regularly maintained themes are more secure
- Ratings and download count: Community trust and adoption
- Compatibility: Works well with commonly used plugins
We recommend choosing from the official WenPai.org theme repository or reputable commercial theme vendors.
Q: What is a child theme, and why should I use one?
A: A child theme is an independent theme that inherits functionality from a parent theme. Benefits of using a child theme include:
- Preserving customizations during parent theme updates
- Safely testing modifications
- Keeping code organized and maintainable
Creating a child theme requires only two files: style.css and functions.php.
Plugin Management
Q: How many plugins should I install?
A: There’s no fixed number — focus instead on:
- Installing only essential plugins
- Choosing lightweight, high-quality plugins
- Regularly removing unused plugins
- Avoiding plugins with overlapping functionality
While a general guideline suggests staying under 20 plugins, quality always trumps quantity.
Q: How do I troubleshoot plugin conflicts?
A: Follow these steps:
- Deactivate all plugins and check whether the issue persists
- Reactivate plugins one by one until the problematic plugin is identified
- Review error logs at
wp-content/debug.log - Use the Health Check plugin’s troubleshooting mode
Performance Optimization
Q: My WordPress site is slow — what can I do?
A: Common optimization techniques:
- Enable caching: Use plugins like WP Rocket or W3 Total Cache
- Optimize images: Compress images and serve them in WebP format
- Use a CDN: Leverage Cloudflare or domestic CDNs
- Optimize the database: Clean up post revisions and spam comments
- Choose quality hosting: SSD storage, sufficient memory, PHP 8.x
Q: How do I enable WordPress debug mode?
A: Add the following lines to wp-config.php:
define("WP_DEBUG", true);
define("WP_DEBUG_LOG", true);
define("WP_DEBUG_DISPLAY", false);
Errors will be logged to wp-content/debug.log.
Security
Q: My WordPress site has been hacked — what should I do?
A: Emergency response steps:
- Back up the current state (for forensic analysis)
- Change all passwords: WordPress admin, database, FTP, and hosting account
- Scan for malware: Use Wordfence or Sucuri
- Restore from a clean backup, or manually clean infected files
- Update everything: WordPress core, themes, and plugins
- Strengthen security: Enable two-factor authentication (2FA), limit login attempts
Q: How can I prevent brute-force attacks?
A: Prevention measures:
- Use strong, unique passwords
- Limit login attempts per IP address
- Enable two-factor authentication
- Change the default login URL (e.g.,
/wp-login.php) - Use security plugins such as Wordfence
China-Specific Considerations
Q: Does WordPress require ICP filing in China?
A: Yes — if your server is located within mainland China, ICP filing is mandatory.
- Individual filing: Requires ID card and domain certificate
- Enterprise filing: Requires business license and legal representative’s ID
- Processing time: Typically 7–20 working days
Using servers in Hong Kong or overseas exempts you from ICP filing, though domestic access speed may suffer.
Q: How can I improve WordPress loading speed inside China?
A: Optimization strategies:
- Replace Google Fonts: Use locally hosted fonts or domestic CDNs
- Replace Gravatar: Use Cravatar or local avatars
- Use domestic CDNs: Alibaba Cloud, Tencent Cloud, or UpYun
- Optimize external resources: Minimize reliance on overseas services
- Choose domestic hosting: Alibaba Cloud, Tencent Cloud, etc.
Q: How do I integrate WeChat Pay or Alipay into WordPress?
A: Common solutions:
- WooCommerce: Use Xunhu Payment or official Alipay plugins
- Standalone plugins: e.g., WP Pay
- Custom development: Direct integration via payment APIs
Note: Online payment processing requires enterprise qualifications and relevant regulatory licenses.
Additional Resources
- WordPress Official Documentation
- WenPai.org Open Source
- Ask questions in this community — AI experts are ready to help!
This FAQ is continuously updated. Feel free to suggest additional common questions in the comments!