WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to develop a WP plugin to show post(or page) related information (such as show all post title in a list) in an admin menu page. I tried to use "The Loop", but it seems like "The Loop" cannot be accessed in Dashboard.

I have achieved my goal by using $wpdb to query database directly.

But is there a better or safer way to load post information in a dashboard menu page?

Thank you in advance.

share|improve this question
The loop can't be accessed in dashboard? Sure you can!! – Bainternet Jul 22 '12 at 23:46
@Bainternet Thanks, that was a mistake – Daiwei Jul 25 '12 at 1:24
up vote 2 down vote accepted

It was my mistake, the loop can be accessed in the admin panel

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.