Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
2.5k views
in Plugins by
edited by

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

  1. Download the latest release of the plugin as a ZIP file
  2. Go to your WordPress admin dashboard
  3. Navigate to Plugins > Add New
  4. Click Upload Plugin
  5. Select the downloaded ZIP file and click Install Now
  6. After installation, click Activate Plugin

Configuration

  1. After activation, go to Settings > Q2A Feed in your WordPress admin dashboard
  2. Enter your Q2A RSS feed URL (typically https://your-q2a-site.com/feed/qa.rss)
  3. Configure the display settings as needed
  4. 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

  1. Go to Appearance > Widgets
  2. Find the Q2A Questions Feed widget
  3. Drag and drop it to your desired widget area
  4. Configure the widget settings
  5. 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

  1. Verify your Q2A RSS feed URL is correct
  2. Check if your Q2A installation has RSS feeds enabled
  3. Clear the plugin cache in the settings

Styling issues

  1. Clear your browser cache
  2. Check for CSS conflicts with your theme
  3. Use browser developer tools to inspect and override styles

Please log in or register to answer this question.

...