Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
2  
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

1 Answer 1

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

 
discard

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.