What is the widget name for use in templates with the_widget?
-
Hi I’m trying to use the_widget() function in my template but am not sure what to use as the widget name.
Heres my code so far…$instance = array( 'title' => '', 'include_parent' => false, 'include_childless_parent' => false, 'css' => false, 'single' => false, 'new_widget' => 'widget', 'exclude' => '', 'legacy_mode' => false, 'display_all' => false, 'levels' => 1, 'order' => 'DESC' ); $args = array( 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ); the_widget( 'advanced_sidebar_menu_category', $instance, $args );
But I dont see anything in my page when I run it. I’ve used the default instance settings from the plugin as a test.
Am I on the right track here? What are the correct setting to get the_widget() function to work?
Many thanks for the plugin btw!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘What is the widget name for use in templates with the_widget?’ is closed to new replies.