Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6872315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:54:44+00:00 2026-05-27T03:54:44+00:00

I am simply baffled by this. It worked before, and I look today and

  • 0

I am simply baffled by this. It worked before, and I look today and it’s broken. Basically, this is a mobile site, and I made a very compact version of the wordpress site. Let me reiterate that it worked for months and now it seemingly randomly doesn’t. I’m using this simple query_posts function below and it simply stops the page dead in it’s tracks. It doesn’t return an error or anything. I look at the source and the entire page just blanks out after query_posts(). There’s nothing. I thought maybe it wasn’t loading wordpress guts for some reason, but I run another function like wp_reset_query and it passes just fine. Furthermore, I have this exact same code running on a nearly identical site and it works fine. I’ve been pulling my hair out for two days and I’v exhausted everything I can think of. ANY help would be extremely appreciated

/* @package MusicScene Mobile
 * @subpackage NWMS
 */

require_once('../wp-load.php');

global $post;
wp_reset_query();
query_posts(array(
            'posts_per_page' => 5,
            'post_status' => 'publish'          
        ));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:54:45+00:00Added an answer on May 27, 2026 at 3:54 am

    Here you go!:

         /* @package MusicScene Mobile
         * @subpackage NWMS
         */
        require_once('../wp-config.php');
        require_once('../wp-load.php');
    
        global $post;
        wp_reset_query();
        query_posts(array(
                    'posts_per_page' => 5,
                    'post_status' => 'publish'          
                ));
        wp_reset_query();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right... this one had me baffled for a while today so maybe one of
Simply put, I'm getting this error in the Product Admin of Magento after adding
Would be great if you guys could shed some light on this, has baffled
I've done extensive research on this, and am baffled. Similar questions on stackoverflow have
This one's got me a bit baffled. I've written some extension methods on UIElement
This is super simple and I'm completely baffled by this behavior. I want my
Baffled by the huge quantity of answers and problems on this subject. Now, I
I am baffled by this simple task i do over and over again. I
I'm baffled by trying to create the equivalent of this trivial (in Common Lisp)
Simply, I want the body of the site to occupy 100% of the browser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.