it looks like your name attribute is missing the sprintf aspect. that line should read
'name' => sprintf(__('Sidebar %d'), $i ),
otherwise %d doesn’t reference $i at all. Also, it looks like you should be calling the sidebar id, not the name. The name is just for looks. For example, once the above is fixed, this coould work:
<?php dynamic_sidebar( 'sidebar-1' ); ?>
Related Posts:
- Check if has any sidebar active on current page
- Dynamically Register Sidebars For Each Top Level Page
- Change a sidebar name?
- add sidebar area to header of child theme
- Advice: Template structure – php blocks in sidebar or someting else?
- Make “sidebar template” the default template for new pages
- Missing argument 2 for a custom function widgets_init
- is_dynamic_sidebar always returns true while using Jetpack visibility
- How to insert custom widget in custom sidebar in theme activation?
- Display post shortcode content in the sidebar?
- Best practices regarding the creation of custom widgets?
- How do you Permanently Delete Sidebars
- Custom Sidebar only on single post
- Is `is_sidebar_active()` deprecated, and showing error?
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- Why is it so hard to add a class to the tag in the sidebar widget?
- Best way to disable sidebars on posts (only)?
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- New checkbox in custom widget isn’t saving data
- How do you insert code into the sidebar?
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- Trying to Add a LEFT Sidebar?
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- unregister_sidebar in child theme not working
- Additional Sidebar
- Add the title of a widget as an ID – for anchor links
- How to check if a user exists by a given id
- How to use the do_action () with parameter
- TinyMCE custom styles remove class when switching styles
- Extending the site search to include a single custom field
- Notify users whenever a new post is published based on their preference
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- syntax for remove_filter in parent theme with class
- Remove Header and Footer in iframe
- How to Acheive the custom woocommerce category template
- Can I remove the Rich Text box editor for a specific post?
- How to update BuddyPress xprofile fields programmatically? [closed]
- Redirect if not logged in?
- A snippet after every image
- Programmatically set page template based on page ID
- Setting featured image with function, 1 part not working
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- wp_remote_post with ssl:// protocol
- Best way to programatically add “rel” attributes to page and post images
- Remove function or filter
- options.php problem – data not saved
- Filtering posts by category name based on page’s slug
- adding custom classes for tables
- CSS for menu item added via functions.php
- Default Gallery Edit/Template Editable?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- Override a theme function in a child theme?
- changing behaviour of get_search_form
- Include default functions and methods
- How can I modify all existing tags while keeping the urls themselves?
- Scripts not appending to element in AJAX call – why?
- Functions.php – Cannot Modify Header Information SOLVED [closed]
- How would I add “edit profile” and “blog post” functions to front-end?
- shortcode help require
- echo custom fields with AJAX
- How to create a functions.php in child theme? [closed]
- wordpress get_post_meta give only first value
- Using multiple line variable inside a function?
- Determine if, within a post, you are on page 2 or greater – WordPress documentation circular
- Wp-query Order By problem
- Protect get_query_var from manual input in url
- widgets not working
- Shortcode to get featured image of specific id post
- wp_get_archives() output
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- How to redirect Subscribers on login to specific page, when logging in from a Page
- how can I add filter in specfic field in my website?
- Which filter fires upon setting a featured image
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- How to customize archive widget only for cpt?
- Shortcode to output category description by passing ID
- some profile informations like youtube link doesnt seem
- Help using ShortCodes to style whole chunks of the post
- How to modify or override a core function (wp_star_rating)
- Is there is a way to check daily first login?
- Filter posts on new page
- Sticky – Featured Image
- Pagination not working on my archive page for a custom post type
- WordPress Jquery+scripts enqueue issue
- Adding a jQuery rotator function
- How to pass a variable from a template page to the child theme functions.php
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- Settings in functions.php used by a plugin
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- Adding result from PHP function into an input field
- Echo a div to header.php from functions.php
- PHP error in shortcode [closed]
- Is storing in a variable the result of a fonction a most powerful way to code an if structures in WordPress?
- woocommerce_sort_product_tabs() expects an array