1478 posts The right tools with none of the gimmicks
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
+1 more
PixelBin says

Title says all. How would it be done? Basically, I need the loop in Wordpress admin. Help appreciated.

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

wouldnt you do it the exact same as the front end?? just add the loop code to where you want it in the admin

1478 posts The right tools with none of the gimmicks
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
+1 more
PixelBin says

wouldnt you do it the exact same as the front end?? just add the loop code to where you want it in the admin

Nope. Doesn’t work because the appropriate files aren’t loaded (there’s no need to, naturally) but I need them. Google isn’t being my friend… it’s filled with thousands of pages explaining the same thing but none on what I need… a.k.a. useless.

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

EDIT : NVM, I need to read

1478 posts The right tools with none of the gimmicks
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • United States
+1 more
PixelBin says

http://codex.wordpress.org/Function_Reference/query_posts

Thanks but that hasn’t solved my problem. Nevermind, don’t worry about it. I’ll work around it.

1383 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

First of all query_posts should only be used on the homepage. :)

For everything else use WP_Query, but not with $wp_query = WP_Query(... because that’s the same as using query_posts.

For example in your situation you can use $my_admin_query = WP_Query(...

by
by
by
by
by
by