In wordpress, we can use $wpdb to execute a sql to query posts. In order to display these posts, we can use setup_postdata(). In this tutorial, we will introduce you how to use them to do.
When i use phpmyadmin to add a full text index for wp_posts table, i get this error: “#1067 – Invalid default value for ‘post_date'”. In this tutorial, we will introduce how to fix this problem.