wordpress have posts not working

Solutions on MaxInterview for wordpress have posts not working by the best coders in the world

showing results for - "wordpress have posts not working"
Emil
04 Oct 2016
1//As per my understandings of your issue:
2
3//You are not querying posts you need to show. Use wp_query() to query your posts before loop.
4
5$wp_query = new WP_Query(array('posts_per_page'=>-1));
6while ($wp_query->have_posts()) : $wp_query->the_post();
7    //your code here
8endwhile;