[Support System] Support System FAQ Sorting

The sorting of the FAQ is a bit obscure. Not alphabetical -- which is the only change we can effect.
Please add some kind of manageable sorting, and if not, just make it alphabetical. There are worse things than having to enter numbers for each faq I guess

  • Tony G
    • Mr. LetsFixTheWorld

    +1 on this. The template is hard-coded, as is the loop processing it. It would be helpful to have documentation with of classes that need to be overridden, and guidance for creating a custom template to reformat FAQ output.

    This seems to be an ideal topic for the WPMU DEV blog.

    • Vaughan
      • Support/SLS MockingJay

      Hey Tony,

      Slightly different to the topic of the OP, but you can actually copy the template files from /wp-content/plugins/incsub-support/inc/templates

      to your current theme.

      so copy all template .php files from the /templates folder in the support plugin.



      Then you can modify them there.

      You can add a different location using the following filter:

      add_filter('support_system_templates_locations', function($locations) {
          $locations = array(
                  get_home_path() . '/wp-content/incsub-support-templates', // checks here 1st
                  get_stylesheet_directory() . '/incsub-support', // checks here 2nd
                  INCSUB_SUPPORT_PLUGIN_DIR . 'inc/templates', // finally checks here
          return $locations;

      In the above, I added get_home_path() location.

      So you can then choose to add templates to /wp-content/incsub-support-templates/ instead.

      Hope this helps

  • Vaughan
    • Support/SLS MockingJay

    Hi Pat

    Hope you're well?

    You can change the sort order of FAQ's by adding the following code to a mu-plugin.

    add_filter('support_system_query_get_faqs_args', function($args, $this) {
        global $wpdb, $current_site;
        $current_site_id = ! empty ( $current_site ) ? $current_site->id : 1;
        $args = array(
    		'per_page' => get_option( 'posts_per_page' ),
    		'page' => 1,
    		'category' => false,
    		'site_id' => $current_site_id,
    		'orderby' => 'question', // Accepted values are faq_id or question
    		'order' => 'asc',
    		's' => false,
    		'count' => false
        return $args;
    }, 10, 2);

    Create a file called incsub_support_faq_order.php

    Then add the above code to this file.

    Upload to /wp-content/mu-plugins/

    If /mu-plugins doesn't exist, create it first.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.