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
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.
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;
}
Done here:
web/wp-content/themes/news-pro/functions.php
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;
}
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.
We will check and update it in the next version.
Please login or Register to submit your answer