Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

the command

 echo '<pre>';print_r(wp_get_sidebars_widgets())  ;   

returns

    [sidebar-page] => Array
    (
        [0] => execphp-5
        [1] => simple-section-nav-3
        [2] => execphp-4
        [3] => wp-forecast-3
        [4] => wp-forecast-4
        [5] => execphp-6
    )

but the sidebar page is not displayed instead the default bar is displayed. why?

share|improve this question
    
you want to display sidebar in a page or want to display sidebar.php page. –  ksr89 Jul 12 '13 at 9:20
    
i want to display this sidebar in the page –  Matoeil Jul 12 '13 at 12:44
add comment

1 Answer 1

you can use dynamic_sidebar() function to display a sidebar in a page.

dynamic_sidebar('Name or ID of dynamic sidebar.')
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.