Widget Logic by Path adds URL path pattern based logic to Widget Logic.
Widget Logic by Path extends Widget Logic functionality to use URL path pattern based logic. It is similar to Drupal's "Show block on specific pages" feature. "*" is the wildcard character. See examples below.
By enabling this plugin, Widget Logic default PHP based logic (eval) will be disabled. So if you are concerned about "eval" security, but still need to use Widget Logic, this plugin will be helpful.
Example URL: http://www.domain.com/--SITE--/about/staff/
about/ <-- Show on about page only about/* <-- Show on about and all the pages under about about/staff/* <-- Show on about/staff/ and all the pages under it <home> <-- Show on homepage <blog> <-- Show on blog latest posts front page <search> <-- Show on search page <logged_in_user> <-- Show only for logged in users
<all paths except> <-- All paths except those listed below about/* <-- Do not show on about and all the pages under about contact/ <-- Do not show on the contact page <home> <-- Do not show on homepage <search> <-- Do not show on search page
/.*apple.*/ <-- Show on all the pages with URL path matching this regular expression. In this case "/.*apple.*/" will be passed to PHP preg_match function"
Requires: 2.8 or higher
Compatible up to: 3.6.1
Last Updated: 2014-1-29
1 of 3 support threads in the last two months have been resolved.
Got something to say? Need help?