Q2A Questions Feed
Q2A Questions Feed - WordPress Plugin
A lightweight WordPress plugin that displays questions from a Question2Answer (Q2A) RSS feed using shortcodes or widgets.
Features
- Display Q2A questions in any post or page using a simple shortcode
- Add a Q2A questions feed to any widget area
- Customize the number of questions to display
- Toggle display of question dates
- Toggle display of question excerpts
- Control excerpt length
- Built-in caching for better performance
- Responsive design that works on all devices
- Easy to customize with CSS
- Admin settings page for easy configuration
Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
- A Question2Answer installation with RSS feed enabled
Installation
- Download the latest release of the plugin as a ZIP file
- Go to your WordPress admin dashboard
- Navigate to Plugins > Add New
- Click Upload Plugin
- Select the downloaded ZIP file and click Install Now
- After installation, click Activate Plugin
Configuration
- After activation, go to Settings > Q2A Feed in your WordPress admin dashboard
- Enter your Q2A RSS feed URL (typically https://your-q2a-site.com/feed/qa.rss)
- Configure the display settings as needed
- Click Save Changes
Usage
Shortcode
[q2a_questions]
Example shortcode
[q2a_questions count="5" show_date="1" show_excerpt="1" excerpt_length="10"]
Shortcode Parameters
- count: Number of questions to display (default: 5)
- show_date: Whether to show the date (1 or 0, default: 1)
- show_excerpt: Whether to show the excerpt (1 or 0, default: 1)
- excerpt_length: Number of words in the excerpt (default: 100)
Widget
- Go to Appearance > Widgets
- Find the Q2A Questions Feed widget
- Drag and drop it to your desired widget area
- Configure the widget settings
- Click Save
Customization
CSS Styling
The plugin includes default styles that you can override with your theme's CSS:
.q2a-questions-feed { /* Main container */ }
.q2a-questions-list { /* Questions list */ }
.q2a-question-item { /* Individual question */ }
.q2a-question-title { /* Question title */ }
.q2a-question-date { /* Question date */ }
.q2a-question-excerpt { /* Question excerpt */ }
Troubleshooting
The feed isn't displaying
- Verify your Q2A RSS feed URL is correct
- Check if your Q2A installation has RSS feeds enabled
- Clear the plugin cache in the settings
Styling issues
- Clear your browser cache
- Check for CSS conflicts with your theme
- Use browser developer tools to inspect and override styles