Youssef Berrada
asked 9 years ago

Hi,
I’m using DW questions and Answer with genesis theme.
I had problems displaying the forum but was fixed.
Now i can’t display the forum when selecting any category.
Any idea?

Thank you in advance for your help

3 Answers
DominicStaff
answered 9 years ago

At the moment, I have not permission to check your question page and select the categories to find your issue. Please send me username & password to check this issue.

DominicStaff
answered 9 years ago

Please help me add the following code to the functions.php file of your theme:

add_filter( 'genesis_pre_get_option_content_archive', 'dwqa_intergrate_genesis', 10, 2 );

function dwqa_intergrate_genesis( $value, $setting ) {

 if ( is_tax( 'dwqa-question_category' ) || is_tax( 'dwqa-question_tag' ) ) {

 return 'full';

 }

 return $value;

}
Youssef Berrada
replied 9 years ago

Done here:
web/wp-content/themes/news-pro/functions.php

DominicStaff
answered 9 years ago

You can remove the old code and add the following code to the functions.php file:

add_filter( 'genesis_pre_get_option_content_archive', 'dwqa_intergrate_genesis', 9999, 2 );

function dwqa_intergrate_genesis( $value, $setting ) {

 if ( is_tax( 'dwqa-question_category' ) || is_tax( 'dwqa-question_tag' ) ) {

 return 'full';

 }

 return $value;

}

add_filter( 'genesis_pre_get_option_features_on_front', 'dwqa_feature_on_first_page', 9999, 2 );

function dwqa_feature_on_first_page($value, $setting ) {

 if ( is_tax( 'dwqa-question_category' ) || is_tax( 'dwqa-question_tag' ) ) {

 $dwqa_options = get_option( 'dwqa_options', array() );

 return isset( $dwqa_options['posts-per-page'] ) ? $dwqa_options['posts-per-page'] : 15;

 }

 return $value;

}
Youssef Berrada
replied 9 years ago

Hi,
Now it’s working, will you fix this for the next update, or i should always keep this code in my functions.php file?

Thank you very muh for your help Dominic.

Dominic Staff
replied 9 years ago

We will check and update it in the next version.

Powered by DW Question & Answer Pro