Table of Contents
- Plugin Overview
- Installation
- Administrator Settings
- Setting Up Paid Articles
- WooCommerce Integration
- User Purchase Flow
- Shortcodes
- Admin Management
- FAQ
- Troubleshooting
1. Plugin Overview
What is WP Paid Articles?
WP Paid Articles is a WordPress plugin that allows you to sell individual articles using WooCommerce. Users can purchase access to premium content, and the plugin handles payment processing, content protection, and download management.
Key Features
- Sell individual articles with custom pricing
- WooCommerce payment integration
- Content protection using
<!--more-->tag - Automatic product creation
- Permanent access for buyers
- Sales tracking and reporting
- Email notifications
Requirements
| Requirement | Version |
|---|---|
| WordPress | 5.0 or higher |
| WooCommerce | 5.0 or higher |
| PHP | 7.4 or higher |
2. Installation
Step 1: Upload Plugin
- Download the plugin zip file
- Go to WordPress Admin → Plugins → Add New
- Click “Upload Plugin”
- Select the zip file and click “Install Now”
Step 2: Activate Plugin
- After installation, click “Activate Plugin”
- The plugin will automatically create necessary database tables
Step 3: Verify WooCommerce
Ensure WooCommerce is installed and activated. If not, you will see a warning message.
3. Administrator Settings
Access Settings
Go to: WordPress Admin → Paid Articles → Settings
Available Settings
| Setting | Description | Default |
|---|---|---|
| Default Price | Default price for paid articles | 9.99 |
| Purchase Button Text | Text displayed on purchase button | “Unlock Full Article” |
| Preview Hint Text | Text shown before purchase | “Unlock the complete article…” |
| Show Purchase History | Enable purchase history display | Yes |
Save Settings
Click “Save Settings” after making changes.
4. Setting Up Paid Articles
Step 1: Edit Article
- Go to Posts → Add New or edit an existing post
- Look for the “Article Payment Settings” panel in the right sidebar
Step 2: Enable Payment
- Check the “Enable Payment” checkbox
- Enter the price (or use default)
- Optionally add custom preview hint text
Step 3: Split Content with More Tag
Important: You MUST add the <!--more--> tag to split free preview from paid content.
How to add the More tag:
- Visual Editor: Click the “More” button in the toolbar (or press Alt+Shift+T)
- Code Editor: Type
<!--more-->directly
Example:
This is the free preview content that all visitors can see.
<!--more-->
This is the paid content that only buyers can access.
Step 4: Publish
- Click “Publish” or “Update”
- The plugin automatically creates a WooCommerce product
- You will see “Linked WooCommerce Product” information
Content Splitting Rules
| Scenario | What Users See |
|---|---|
Has <!--more--> tag | Content before tag (free) + Purchase button |
No <!--more--> tag | First 300 characters + Purchase button |
| User has purchased | Full content + “Unlocked” message |
5. WooCommerce Integration
Automatic Product Creation
When you enable payment on an article, the plugin automatically:
- Creates a WooCommerce product
- Sets product type to “Simple Product”
- Marks as “Virtual” (no shipping)
- Sets “Sold Individually” (one per order)
- Links the product to the article
Product Settings
| Setting | Value |
|---|---|
| Product Name | [Article] + Article Title |
| Product Type | Simple Product |
| Virtual | Yes |
| Downloadable | No |
| Regular Price | Article price |
| Stock Management | No |
Payment Methods
Users can pay using any WooCommerce payment gateway:
- Credit/Debit Cards (Stripe, PayPal, etc.)
- Alipay
- Bank Transfer
- Any other configured gateway
6. User Purchase Flow
For Visitors
- Visit article page
- See free preview content
- See purchase button with price
- Click “Unlock Full Article”
- Redirected to WooCommerce cart
Checkout Process
- Add to cart
- Proceed to checkout
- Enter billing details
- Select payment method
- Complete payment
After Purchase
- Payment confirmed
- Article automatically unlocked
- Email notification sent
- Full content now visible
- Download link available
For Returning Users
Users can re-access purchased articles anytime:
- Visit the article page
- See “Unlocked” message
- Full content displayed
- No need to repurchase
7. Shortcodes
Purchase History
Display user’s purchased articles:
[wpa_purchase_history]
Parameters:
| Parameter | Default | Description |
|---|---|---|
| limit | 20 | Number of items to display |
| title | “My Purchased Articles” | Section title |
Example:
[wpa_purchase_history limit="10" title="My Reports"]
Total Revenue (Admin Only)
Display total revenue:
[wpa_total_revenue]
Top Selling Articles (Admin Only)
Display best-selling articles:
[wpa_article_sales]
Parameters:
| Parameter | Default | Description |
|---|---|---|
| limit | 10 | Number of items to display |
8. Admin Management
Sales Records
Access: WordPress Admin → Paid Articles → Sales
Information Displayed:
| Column | Description |
|---|---|
| ID | Purchase record ID |
| User | Buyer email/username |
| Article | Purchased article title |
| Price | Sale amount |
| Date | Purchase date |
| Order | WooCommerce order link |
Statistics
The settings page shows:
- Total revenue
- Number of sales
- Recent purchases
9. FAQ
Q: How do I re-download a purchased article?
A: Simply visit the article page again. You will see “Unlocked” message and full content. Use the download link provided.
Q: What if I lose my order number?
A: Check your email for purchase confirmation. The order number is included in the email.
Q: Can I get a refund?
A: Contact the site administrator. Refunds are handled through WooCommerce.
Q: Does the purchase expire?
A: No. Once purchased, you have permanent access to the article.
Q: Can I share my purchased articles?
A: Purchases are linked to your account. Sharing may violate terms of service.
Q: Payment failed, what should I do?
A:
- Check your payment details
- Try a different payment method
- Contact your bank
- Contact site support
Q: Can I use multiple payment methods?
A: Yes, any WooCommerce payment gateway enabled on the site is available.
Q: How do I change my article price?
A:
- Edit the article
- Change the price in “Article Payment Settings”
- Update the article
- WooCommerce product will be updated automatically
Q: Can I make an article free again?
A:
- Edit the article
- Uncheck “Enable Payment”
- Update the article
- WooCommerce product will be deleted
10. Troubleshooting
Problem: Purchase button not showing
Possible Causes:
- Article is not marked as paid
<!--more-->tag is missing- WooCommerce not activated
- Plugin conflict
Solutions:
- Check “Enable Payment” is checked
- Add
<!--more-->tag to content - Activate WooCommerce
- Deactivate other plugins to test
Problem: “Product not available” error
Possible Causes:
- WooCommerce product not created
- Product deleted manually
- Database issue
Solutions:
- Re-save the article to recreate product
- Check Products list in WooCommerce
- Deactivate and reactivate the plugin
Problem: Payment completed but content not unlocked
Possible Causes:
- Order status not “Completed”
- Database table missing
- Cache issue
Solutions:
- Check WooCommerce order status
- Manually set order to “Completed”
- Clear browser cache
- Check database table exists:
wp_wpa_purchases
Problem: Database table not created
Symptoms:
- Error messages in admin
- Purchases not recording
Solution:
- Deactivate the plugin
- Reactivate the plugin
- Check
wp_wpa_purchasestable exists in database - If not, manually run the SQL from
includes/class-activator.php
Problem: WooCommerce compatibility warning
Symptoms:
- Warning message about incompatible plugins
- WooCommerce features not working
Solution:
- Update WooCommerce to latest version
- Update WP Paid Articles to latest version
- The plugin declares compatibility with WooCommerce HPOS and Cart Blocks
Problem: Email notifications not sent
Possible Causes:
- WordPress email function disabled
- SMTP not configured
- Emails going to spam
Solutions:
- Install SMTP plugin (e.g., WP Mail SMTP)
- Configure email settings
- Check spam folder
- Test with a different email address
Support
For additional support:
- Check WordPress debug.log for errors
- Verify WooCommerce is functioning correctly
- Test with default WordPress theme
- Contact plugin developer
Version History
| Version | Changes |
|---|---|
| 1.0.2 | WooCommerce compatibility improvements |
| 1.0.1 | Fixed AJAX add to cart |
| 1.0.0 | Initial release |