how do I get_sidebar into a varaible?

I want to get a sidebar and save it in a Variable, This is impossible with the get_sidebar function since it simply prints out the sidebar, is there another function that I can use? 2 s 2 You probably need to use output buffering, if I understand your question correctly. Try something like this: ob_start(); … Read more

How to edit contents of dynamic_sidebar()?

I know PHP well but I’m new to WordPress. I got an incomplete WordPress website. It has a static home page with an Aweber newsletter form. I tried digging into installed theme and in home.php I came across: <div class=”home-infobox”> <?php if ( is_active_sidebar( ‘homepage-infobox’ ) ) : ?> <?php dynamic_sidebar( ‘homepage-infobox’ ); ?> <?php … Read more

Sharing Dynamic Sidebars across Multisite Blogs

I’m trying to find away to retrive a dynamic sidebar from one blog and print it on another blog in the same install of WordPress Multisite. I have tried switch_to_blog($blog_id); dynamic_sidebar($sidebar_name); restore_current_blog(); But nothing is returned. I also tired to retrive the sidebar through get_blog_option($blog_id, ‘sidebar_widgets’) but I was only able to retrive an array … Read more

Individual Widgets per Page

In my (page-only, no posts) WordPress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses ‘blobs’ as widgets. At least they’ll have a fixed html content, like ‘teaser1’, ‘teaser2’, ‘disclaimer’, ‘foo policy’… What I need, is to arrange them differently for every page. So this … Read more

Translate widget titles using qTranslate plugin

I’m actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to put tags like this: <!–:en–>My English Title<!–:–><!–:fr–>My French Title<!–:–> When I use this in the content of my widget it works well. … Read more