Invoke Widget Logic Programatically
-
Hi
Is there any way, I could invoke the configuration of the placement of a widget for a specific posttype programatically?
I would like to do something like
createWidgetLogic(WIDGETNAME, WIDGETLOGIC);
e.g.
createWidgetLogic(“Calendar”, “(get_post_type()==’event’)”);
so that the Calendar Widget is only displayed with event posts.Thank you!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Invoke Widget Logic Programatically’ is closed to new replies.