Why i set featured then page blank

7.29K viewsThemes
1

Hi,

When i set featured then page blank, do not show question on Home page. Pls fix error.

1

You are 100% right. There is an error also in v3. Pitty. It seems that v3 is as v2, full of bugs.

[29-Jun-2016 15:26:04 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5’ at line 1 for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = ‘question’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘closed’ OR wp_posts.post_status = ‘moderate’ OR wp_posts.post_status = ‘private_post’))  ORDER BY  wp_posts.ID IN (, 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/index.php’), get_footer, locate_template, load_template, require_once(‘/themes/justwrite/footer.php’), dynamic_sidebar, WP_Widget->display_callback, AP_Questions_Widget->widget, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
[29-Jun-2016 15:26:05 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5’ at line 1 for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = ‘question’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘closed’ OR wp_posts.post_status = ‘moderate’ OR wp_posts.post_status = ‘private_post’))  ORDER BY  wp_posts.ID IN (, 27535) DESC, wp_posts.post_date DESC LIMIT 0, 5 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/index.php’), get_footer, locate_template, load_template, require_once(‘/themes/justwrite/footer.php’), dynamic_sidebar, WP_Widget->display_callback, AP_Questions_Widget->widget, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
[29-Jun-2016 15:26:08 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ 27535) DESC, wp_postmeta.meta_value DESC LIMIT 0, 10’ at line 7 for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )  INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) WHERE 1=1  AND (
wp_postmeta.meta_key = ‘_ap_updated’
AND
(
mt1.meta_key = ‘_ap_updated’
)
) AND wp_posts.post_type = ‘question’ AND ((wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘closed’ OR wp_posts.post_status = ‘moderate’ OR wp_posts.post_status = ‘private_post’)) GROUP BY wp_posts.ID ORDER BY  wp_posts.ID IN (, 27535) DESC, wp_postmeta.meta_value DESC LIMIT 0, 10 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/justwrite/page.php’), get_template_part, locate_template, load_template, require(‘/themes/justwrite/page-templates/template-page.php’), the_content, apply_filters(‘the_content’), do_shortcode, preg_replace_callback, do_shortcode_tag, AnsPress_BasePage_Shortcode->anspress_sc, ap_page, AnsPress_Common_Pages::base_page, ap_get_questions, Question_Query->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts

commented on answer

I made a commit. Please check if your issue solved.

@Kumar : fixed a bug, thnks

You are viewing 1 out of 4 answers, click here to view all answers.