WordPress Integration
Plugin or custom implementation for WordPress websites.
Installation Methods
Choose Your Installation Method
Select the method that best fits your WordPress setup and technical requirements:
Best for: Simple websites, single theme
Best for: Advanced features, multiple sites
Best for: Network sites, cannot be deactivated
Theme Integration
1. Add to functions.php
Add this code to your active theme's functions.php file. This method is quick but will be lost when you update your theme:
functions.php
2. Configure Board ID
Set your board ID in WordPress admin or directly in the code. You can find your Board ID in your Suggesto dashboard.
Custom Plugin Development
Complete Plugin Code
Create a custom plugin for better management, settings page, and advanced features:
suggesto-widget.php
Admin Settings Page
The plugin includes an admin settings page where users can configure their Board ID:
Admin Settings Functions
WordPress Hooks & Filters
Customize the widget behavior using WordPress hooks and filters:
Custom Hooks and Filters
Conditional Loading
Load the widget conditionally based on user roles, page types, or other WordPress conditions:
Conditional Widget Loading
Troubleshooting
Check these common issues:
- Verify the board ID is correct in WordPress admin
- Check if wp_footer() is called in your theme
- Ensure JavaScript is enabled in the browser
- Look for JavaScript errors in browser console
If the widget conflicts with other plugins:
- Deactivate other plugins temporarily to identify conflicts
- Check for JavaScript errors in browser console
- Ensure the widget loads after jQuery if your theme requires it
Clear cache after installing the widget:
- Clear WordPress cache (if using caching plugins)
- Clear browser cache
- Clear CDN cache (Cloudflare, etc.)
For WordPress multisite networks:
- Install as network plugin or individual site plugin
- Use different board IDs for different sites
- Consider using must-use plugins for network-wide deployment
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
with your actual Board ID from the dashboard