1

I know

 wp_title("",false)

Outputs a title for a page into HTML.

How do I do the same for the

dynamic_sidebar();

?

  • You want to display name that sidebar was registered with in front end? This is not very common, it is presumed to be for admin side use. Since you need name to call dynamic_sidebar() anyway why do you want to do this with code? – Rarst Oct 13 '12 at 21:18
1

As @kaiser pointed out in the comments, the function reference for Dynamic_sidebar() is perfectly useful.

On the other hand, if what you'd like to do is add a custom header to a particular sidebar, you could add a text widget to the top of that sidebar in the wp-admin widget area and place your custom title in that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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