Title: yashbee's Replies | WordPress.org

---

# yashbee

  [  ](https://wordpress.org/support/users/yashbee/)

 *   [Profile](https://wordpress.org/support/users/yashbee/)
 *   [Topics Started](https://wordpress.org/support/users/yashbee/topics/)
 *   [Replies Created](https://wordpress.org/support/users/yashbee/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/yashbee/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/yashbee/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/yashbee/engagements/)
 *   [Favorites](https://wordpress.org/support/users/yashbee/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP_Query with custom post type in args stopped working](https://wordpress.org/support/topic/wp_query-with-custom-post-type-in-args-stopped-working/)
 *  Thread Starter [yashbee](https://wordpress.org/support/users/yashbee/)
 * (@yashbee)
 * [9 years ago](https://wordpress.org/support/topic/wp_query-with-custom-post-type-in-args-stopped-working/#post-9105991)
 * Thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP_Query with custom post type in args stopped working](https://wordpress.org/support/topic/wp_query-with-custom-post-type-in-args-stopped-working/)
 *  Thread Starter [yashbee](https://wordpress.org/support/users/yashbee/)
 * (@yashbee)
 * [9 years ago](https://wordpress.org/support/topic/wp_query-with-custom-post-type-in-args-stopped-working/#post-9105794)
 * The error log says:
 * [07-May-2017 13:04:39 UTC] PHP Fatal error: Allowed memory size of 268435456 
   bytes exhausted (tried to allocate 2097152 bytes) in /home/**/public_html/wp-
   includes/wp-db.php on line 2416
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Some pages not loading fully](https://wordpress.org/support/topic/some-pages-not-loading-fully/)
 *  Thread Starter [yashbee](https://wordpress.org/support/users/yashbee/)
 * (@yashbee)
 * [9 years ago](https://wordpress.org/support/topic/some-pages-not-loading-fully/#post-9105223)
 * The problem seems to be in this part of the code:
 *     ```
       <?php
   
           $args = array(
               'post_type' => 'family-members',
               'posts_per_page' => -1
           );
   
           $the_query = new WP_Query( $args );
   
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Some pages not loading fully](https://wordpress.org/support/topic/some-pages-not-loading-fully/)
 *  Thread Starter [yashbee](https://wordpress.org/support/users/yashbee/)
 * (@yashbee)
 * [9 years ago](https://wordpress.org/support/topic/some-pages-not-loading-fully/#post-9082422)
 * [@pxforti](https://wordpress.org/support/users/pxforti/)
    Yes, I am aware of 
   the text being there. But there is more content on the right column than what
   is being loaded. Also, the background color is white and looks fine on my local
   machine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] WP-PageNavi is showing the first page only](https://wordpress.org/support/topic/wp-pagenavi-is-showing-the-first-page-only/)
 *  Thread Starter [yashbee](https://wordpress.org/support/users/yashbee/)
 * (@yashbee)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/wp-pagenavi-is-showing-the-first-page-only/#post-7414009)
 * Got the mistake.
 * Changed this –
 * `<?php wp_pagenavi(); ?>`
 * to this –
 * `<?php wp_pagenavi( array( 'query' => $the_query ) ); ?>`

Viewing 5 replies - 1 through 5 (of 5 total)