__i__ id in new sidebar register

I am trying to register a sidebar in my class. $this->number is use to generate a unique id for each sidebar. Here is my code

register_sidebar( array(
 'id'           => 'col'.$this->number,
'name'          =>  __( 'Column '. $this->number, '' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget'  => '</section>',
'before_title'  => '<h5 class="section-nav-title">',
'after_title'   => '</h5>',) );

If I check using firebug it returns id as col__i__ but it should return col5 or something. I am not sure how data is phrasing by wordpress any help will be appropriated.

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.