[wp-hackers] problems with wpquery

Khaleel Abdul Karim webmaster887 at gmail.com
Tue May 11 01:02:08 UTC 2010


   *     global $wp,$wp_query;
        $wp->parse_request();
        $wp->query_posts();
        print_r($wp_query->queried_object_id);*

I have tried this code to get id of a queried post/page/cat etc. But *
$wp_query->queried_object_id* returns me a NULL value. Any solution.
Thanks in advance.

-- 
~~~~~~~~~~~~~~~~~~
http://khaleel.isgreat.org
Khaleel Abdul Karim
Thazhathuveedu
Erumely


More information about the wp-hackers mailing list