Using WordPress is_front_page conditional
-
I’m trying to modify an Events Calendar template using conditionals so certain elements only appear on specific theme pages but the WordPress conditionals (like “is_front_page”) do not work, probably because the plugin files are loaded before $wp_query fires. Are there any other conditional methods to use within the plugin that return true or false for specific pages in a theme? Or is there a workable method to use WordPress conditionals? Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using WordPress is_front_page conditional’ is closed to new replies.