Mohan Chevuri
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: New Release Mailing List?There is a “release notification” join button on the WordPress download page.
Forum: Plugins
In reply to: [Widget Logic by Path] !Hello, at the moment only “<logged_in_user>” is supported. “Anonymous” is not. You can try “<all paths except>”, which basically flips the logic – that is, if it is supposed to be visible, it removes it, and vice versa.
Forum: Plugins
In reply to: [Widget Logic by Path] Where,I can't find .Once you have both the plugins installed, Widget Logic box becomes Widget Logic by path box. So you can put “Widget Logic by Path” logic in “Widget Logic” box. There is no additional UI for this plugin.
Forum: Plugins
In reply to: [Widget Logic by Path] Show widget on single posts?Thanks for posting your logic here.
You could also try the below one to make it show on all URLs starting with 20xx/anything. Which will match pretty much all blog posts.
/20\d{2}\/.*/
Forum: Plugins
In reply to: [Widget Logic by Path] This plugin not functional on 3.9.1?It works normal on our 3.9.1 setups. I see another post about the same issue. Perhaps you don’t have widget logic plugin enabled? Which is required for this plugin. Either way please post here, to make sure it is not a bug or something else.
Forum: Plugins
In reply to: [Widget Logic by Path] Where,I can't find .Hello,
Do you have Widget Logic plugin installed? This plugin is an extension to Widget Logic and requires widget logic to be present to be usable.
Forum: Plugins
In reply to: [Widget Logic by Path] Feature Request: Per-widget toggleSorry, this plugin cannot handle the user interface piece of Widget Logic. It is only an add-on to Widget Logic (eval filter).
Forum: Plugins
In reply to: [Widget Logic by Path] The same for categories?Sorry for the late response. I think this could be done using regular expressions in place of paths.
Forum: Plugins
In reply to: [Widget Logic by Path] How to show/hide on custom search URL onlyUnfortunately that is not possible with the default usage of this plugin. But you can try with Widget Logic. This post might be helpful.
https://www.ads-software.com/support/topic/feature-request-per-widget-toggle?replies=2#post-5609230
Forum: Plugins
In reply to: [Widget Logic by Path] Feature Request: Per-widget toggleAdding this line to your theme’s functions.php file will remove the link between Widget Logic and Widget Logic by Path.
remove_filter( 'widget_logic_eval_override', array($widgetLogicByPath, 'evaluate') );
Then Widget Logic can be used as usual, and if Widget Logic by Path is needed, it can be used in the following way.
$wlp[] = "about/*"; $wlp[] = "about/staff/*"; $widgetLogicByPath->evaluate( implode("\n",$wlp) );
I did not get a chance to test this code, but it should work.
But keep in mind that one of the primary design goals behind this plugin was to override eval and yet have the flexibility of Widget Logic with simplicity.
Forum: Plugins
In reply to: [Widget Logic by Path] Showing / hiding a part of the widgetIf you are still looking for a solution… I think you will need to build a custom widget/shortcode plugin to do that, or there might be a plugin in wp.org which has this type of functionality. WL by path only shows and hides widgets.
Forum: Plugins
In reply to: [Widget Logic by Path] Filter by languageThe translation plugin you are using might be removing the language code from the URL path. I’m not sure. You can try with version 0.1.1 of this plugin. It calculates the path differently.
https://downloads.www.ads-software.com/plugin/widget-logic-by-path.0.1.1.zip
Forum: Plugins
In reply to: [Widget Logic by Path] Buddypress URL's prepended with User/Member nameTry with regular expressions. It is the 3rd example on the plugin page. Here is an example.
/.*\/about\/staff\/.*/
This will show the widget on domain.com/username/about/staff/*
Forum: Plugins
In reply to: [Widget Logic by Path] implode arg needs arrayI will release an update, but adding the below line should fix the warning.
In file “wp-content/plugins/widget-logic-by-path/widget_logic_by_path.php” add the below line right after the line “private function regex_check($values){“.
$patterns = array();
Forum: Plugins
In reply to: [Widget Logic by Path] implode arg needs arrayThanks for catching it. PHP documentation has the below line.
Note: implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments
That is why it is working without any issues on our setup. Which version of PHP do you have? As the note about consistency says, I will think about changing the order in the next version.