开发者 | tahiryasin |
---|---|
更新时间 | 2015年5月13日 05:46 |
捐献地址: | 去捐款 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 3.9.1 |
版权: | GPLv2 or later |
/wp-content/plugins/
directorySettings -> Script Logic
is_page('contact-us')
in logic fieldTry switching to the WP default theme - if the problem goes away, there is something specific to your theme that may be interfering with the WP conditional tags. Most probably the logic text on one of your scripts is invalid PHP
There is some confusion between the Main Page and the front page. If you want a script on your 'front page' whether that is a static page or a set of posts, use is_front_page(). If it is a page using is_page(x) does not work. If your 'front page' is a page and not a series of posts, you can still use is_home() to include scripts on that main posts page (as defined in Admin > Settings > Reading).