conditional tags within a plugin
-
I am modifying a plugin to only work on certain pages. I thought I could use conditional tags from within the plugin but it seems that the plugin runs before the $wp_query is initialized with values so the “is_” conditional functions don’t actually return true or false but calling function_exists for is_single() and so on return true.
How can I determine conditional tags on my own or another way within a plugin?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘conditional tags within a plugin’ is closed to new replies.