Skip Navigation

[Resolved] Insert Sdiebar in views template

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 3 voices.

Last updated by Chris 7 years, 7 months ago.

Assigned support staff: Caridad.

Author
Posts
#34371

Is there a shortcode? Or can I register a shortcode to include the wp sidebar in a Views template?

Best
P.

#34374

Dear Peer,

You can add this code to your functions.php of your theme:

add_shortcode('dynamic-sidebar', 'my_sidebar_shortcode');
function my_sidebar_shortcode($atts) {
 ob_start();
 dynamic_sidebar();
 return ob_get_clean();
}

Please let me know if there is anything else that I can assist you with.

Regards,
Caridad

#34375

Thanks you very much!

#36275

It would be so great if we could do this within Types -- i have the same issue.