is_active_sidebar
has a single value, whether it is the sideabar id or name. If you have more than one sidebar, you should repeat is_active_sidebar
, each one with a specific sidebar id or name.
You would do something like this
<?php if ( is_active_sidebar( 'available-course-list-1' ) && is_active_sidebar( 'available-course-list-2' )) : ?>
Related Posts:
- Retrieve each widget separately from a sidebar
- $post>ID displays wrong post ID
- How to add author details in the post sidebar?
- Adding ‘current_post_item’ class to current post in the loop
- How can i use the same template file with a widget and category loop?
- Problem getting current post tags to show in a widget
- Contact information footer
- New loop vs widget
- Pulling in featured image into default recent posts widget
- WordPress shortcode in content, output in sidebar?
- Exclude current post ID from loop in sidepbar.php
- How to display a loop of custom post types in columns
- Variable not working in sidebar loop
- Need some help with “the_widget()” function
- Showing related posts (custom post type) outside of the loop
- Programmatically add widgets to sidebars
- Add the sidebar/widget editor to the post edit screen?
- Get date of last update outside of loop
- Getting post-thumbnails from another WP site
- Adding a widget programmatically
- How to create a widgetized sidebar for every category dynamically?
- Changing behavior of the loop twice in one page
- Displaying child page content of a certain parent
- Pagination adding extra posts only on page 2
- If Loop has odd number of posts on last page Custom style for last post in it
- Custom page template
- Get posts that matches specific terms of multiple custom taxonomies
- dynamic_sidebar() returns false in admin section
- How can I use get_permalink() outside the loop?
- Two loops by pre_get_post on same page
- How to check for specific content in comments in the loop
- How to add new sidebar widget area to child theme?
- Problem the_permalink
- Sort Posts By Category?
- Can’t access login screen, wp-login.php 404’s
- Create static front-page with 3-5 recent posts
- Customize WooCommerce Product Images (Placement and size) [closed]
- Missing sidebar parameter “fix” – before_content
- Custom Post Type Loop throws 500 error when used in widget
- get latest 5 posts and a specific post and sort in a specific order
- How to check if a post exist?
- How to use current_post to open a new unordered list every five posts
- Dynamic Sidebars & Echo
- Custom random quote widget breaks when used in multiple sidebars
- Pagination for multiple loops
- Infinite Scroll on a loop?
- Post classes in the loop are being changed in certain themes
- wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls
- Show a widget as a sidebar fallback
- How to display pending posts on the homepage only for editors
- Add leading zero to current post display [closed]
- Distribute Gallery Images Every nth in Loop
- WordPress Image Slider Looping Title Not Working
- Is there any good reason for two CSS files to @import each other?
- Adding div after every two post on main loop! Why will first post not get counted?
- Second Loop Showing Only One Post on Single Post Page
- Random post link generator messes up the loop
- Multiple rows of footer widget areas
- how can i order the category by date
- Change position of entry title
- excerpt not showing up
- Add a select-option to the default widgets
- Widget content turns up before title
- Announces with different formatting dependently on a number
- Override orderby to create list of users by custom meta_value
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Several loops in sidebar issues
- Problem with WP_Query loop and search term
- List page is showing 404
- Duplicated tag in loop
- Loop only shows first two posts
- Why is my archive page looping through all but one post?
- Loop two different category WP_Query
- Use ACF Category Image for all Taxonomy Archive Views
- Loop with custom posts, to include information from different custom post type
- My WordPress installation doesn’t load correct template
- How can I add a prefix to titles displayed in sidebar using function.php?
- Transient not working for external data
- adding tax_query to $query_string
- Does current page contain widget or sidebar
- Active Sidebar Conditional Question?
- Remove posts_orderby filter then add it back in
- the_title() Returns the page title instead of the post
- WP update_post_meta link loop
- Paginate recent posts widget
- WP_query returns error when used for custom widget
- How do I aproach this?(for sale, for lease, sold->move something from a category to another)
- Template from scratch: Sidebars not showing widget
- How to fix pagination for custom loops?
- Conditional Check in The Loop’s Parameters
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- How to add excerpt in loop in Twenty Eleven theme?
- Unique widget id in sidebar
- How to implement template file and the loop
- Show only posts from todays date [duplicate]
- I need to update the post query? [closed]
- Multiple loop with pagination in same page
- Why did my most recent article fall behind an older one on my site?
- Use Base-URL with Query-Loop
- Can’t edit the widgets sidebar or footer