• Resolved johannesfosseus

    (@johannesfosseus)


    Hi

    I have some problem to access the “query_var” from inside of a plugin, is that possible at all?

    For example. How do I check the “pagename” from inside of my plugin? get_query_var(‘pagename’)

    I have no problem accessing the vars from the templates but if I try to do the same thing inside my plugin I get errors in return.

    Fatal error: Call to a member function get() on a non-object in /apache2/htdocs/wp3/wp-includes/query.php on line 27

    regards // Johannes

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘accessing get_query_var from plugin’ is closed to new replies.