WordPress Questions and Answers (CMA) - Settings - Ajax and Non Ajax Display


Using Ajax Display

Back to User Guide

WordPress Questions and Answers supports the ability to use Ajax to display content. When set using a shortcode, the answer thread for a question will be show on the same page URL as the list of questions.

This has advantages related to load time and interaction and disadvantages when it comes to SEO. You can overcome the SEO issues by still keeping the auto generated question list page alive. This means that search engines will still index your sites questions while you can retain the Ajax based user interface. 

Using a Shortcode or an Auto Generated Index Page

When installing the plugin it shows the two methods to list of all questions above the tabs.

Links to the regular and AJAX versions of the index page - WordPress Question and Answer Plugin
Links to the regular and AJAX versions of the index page

Auto Generated (1) - is the auto generated question page list. This list is using the template file defined by the plugin settings. This questions list has more configuration options but is less flexible in terms of design.

Shortcode based (2) - a shortcode generated question list. Referred as the frontend Ajax. The list will fit into every template your theme offer as it is more dynamic and adjustable. 

It is possible to suppress both list from the plugin settings:

Options for setting up the forum index page - WordPress Forum Plugin
Options for setting up the forum index page

There are a few additional options that let you configure using Ajax on your forum:

AJAX settings - WordPress Discussion Forum
AJAX settings
  • Enable AJAX call on filters - If enabled, then filters will work with Ajax call.
  • Enable AJAX call on question - If enabled, then questions will open with Ajax call.
  • Enable AJAX support on contributor page - This option allows you to disable AJAX support on contributors pages. By default, the option is enabled. If this option is enabled, when users click on a category or difficulty level on a contributor page, there will be loaded only question by the contributor page user. If the option is disabled, then clicking on a category or difficulty level on a contributor page will load questions by all contributors. Note: This option was introduced in version 4.6.3.

    Examples

    When the option is enabled, we can see the questions of definite category by only one user:

    Questions list of a definite category by only one user - WordPress Q and A Plugin
    Questions list of a definite category by only one user

    When the option is disabled, we can see questions of definite category by all users:

    Questions list of a definite category by all users - Discussion Forum Plugin for WordPress
    Questions list of a definite category by all users

Modifying the Shortcode Ajax Support

Most shortcodes used in the WordPress Questions and Answers have the option to turn the Ajax option on or off. This is done by adding the parameter ajax=1 or 0 to the shortcode. 

The default in most of this shortcodes are ajax=1 so to turn it off, add the parameter ajax=0 to the shortcode.


More information about the WordPress Questions and Answers plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.