Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Widget Logic by Path

Descripción

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.

  • Widget Logic version >= 0.56 is required for this plugin to work.
  • Works in Multisite.

Example URL: http://www.domain.com/–SITE–/about/staff/

Example 1

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

Example 2

<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

Example 3 (Advanced)

/.*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"

Instalación

  1. Install Widget Logic version >= 0.56
  2. Install this plugin
  3. Activate Widget Logic and this plugin through the ‘Plugins’ menu in WordPress
  4. You can start adding URL path patterns to Widgets from the usual Widgets admin interface

Reseñas

1 de abril de 2017
Essential plugin. Probably in the top 20 must-have plugins.
Leer todas las 14 reseñas

Colaboradores y desarrolladores

«Widget Logic by Path» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «Widget Logic by Path» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

0.2.2

  • Fixed PHP warning for implode

0.2.1

  • Added «blog» keyword for blog latest posts front page
  • Updated regular expression used to evaluate * wildcard
  • Suppress preg_match warnings incase of bad regex in user input

0.2

  • Support for regular expressions
  • Re-write

0.1.1

  • Fixed conflict between home and search

0.1

  • Initial wordpress.org release