hougaard
asked 8 months ago

What do I need to do to make it show?

2 Answers
DominicStaff
answered 8 months ago

At the moment, the plugin does not support showing category filters on the question page, you can use the dwqa category filter widget. 

hougaard
replied 8 months ago

Found it, but I cannot get the category view to work, it always shows page not found. permalinks looks fine, been debugging it, but haven’t found the reason why… You can try at http://www.hougaard.com/support

Dominic Staff
replied 8 months ago

Could you send me the admin account for further checking?

hougaard
replied 8 months ago

Sorry, that’s against our security policy, we can setup a screensharing call? Email me at [email protected]

Dominic Staff
replied 8 months ago

I have sent an email to you, pls check it now.

hougaard
replied 8 months ago

Sent multiple replies to you?

Dominic Staff
replied 8 months ago

I have checked and answered your question.

DominicStaff
answered 8 months ago

Hi, 
I have checked and see that the Elementor does not have the archive.php file. So, you need to customize the index.php file. 
You can open the index.php file and replace it with the following code: 

<?php
/**
 * The site's entry point.
 *
 * Loads the relevant template part,
 * the loop is executed (when needed) by the relevant template part.
 *
 * @package HelloElementor
 */

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

get_header();

$is_elementor_theme_exist = function_exists( 'elementor_theme_do_location' );

if ( is_singular() ) {
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) {
get_template_part( 'template-parts/single' );
}
} elseif ( is_archive() || is_home() || is_tax ( $taxonomy = 'dwqa-question_category' ) ) {
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) {
get_template_part( 'template-parts/archive' );
  }
} elseif ( is_search() ) {
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) {
get_template_part( 'template-parts/search' );
}
} else {
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) {
get_template_part( 'template-parts/404' );
}
}

get_footer();
Powered by DW Question & Answer Pro