Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9223925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:11:27+00:00 2026-06-18T04:11:27+00:00

Problem: A third sidebar I’ve added is not appearing on the target page. Description:

  • 0

Problem: A third sidebar I’ve added is not appearing on the target page.

Description: I wanted to see if anyone can see anything I’m missing in the steps to create and display a widget sidebar in a particular template. Using the situation described below the sidebar appears on the widgets admin page but when the template renders the sidebar is the default sidebar, which suggests that the dynamic sidebar is not being found by the template. This is the second sidebar I’ve added. if I replace the sidebar name in the template tag with the name of the first additional template the page renders with the first customized sidebar.

Steps to create additional widget sidebars and display them with selected templates

1) Register the sidebar in the child theme in functions.php
2) In the registration process assign a name and ID to the new sidebar
3) Create an additional sidebar template based on the existing template. Copy the existing template and change the name of the dynamic template to match the newly registered sidebar
4) Go to the template where you want the sidebar to display and insert the name of the sidebar into the get_sidebar() template tag.
5) Go to the admin panel and drag widgets onto the new sidebar book post

Specifically this might look like:

  1. Register the sidebar:

    if ( function_exists ('register_sidebar'))
        register_sidebar( array(
        'name'          => __('bookpost'),
        'id'            => 'sidebar-bookpost',
        'description'   => 'Sidebar for showing ad and section list on the template single-book.php',
        'before_widget' => '<div id="%1$s" class="widget %2$s">',
        'after_widget'  => '</div>',
        'before_title'  => '<h2 class="widgettitle">',
        'after_title'   => '</h2>' ));
    
  2. Assign name bookpost and sidebar-bookpost
  3. Create an additional sidebar template named sidebar-bookpost.php. Edit the line

    So that it now reads

    get_sidebar('bookpost');
    

and finally use the widgets admin page to assign widget.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:11:29+00:00Added an answer on June 18, 2026 at 4:11 am

    Are you trying to get dynamic sidebar??
    if so then use

    <?php if ( is_active_sidebar( 'sidebar-bookpost' ) ) : ?>
    
            <?php dynamic_sidebar( 'sidebar-bookpost' ); ?>
    
    <?php endif; ?>
    

    instead of get_sidebar(‘bookpost’);

    ………

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've the hellish problem of a third party DLL appearing to cause a recursive
THIRD EDIT: I now believe that this problem is due to a SOAP version
I have a problem with consuming a third-party web service in .NET C#. It
I've a problem with LINQ. Basically a third party database that I need to
I have a bit of a problem here. I have a third party ActiveX
I have a problem providing some third party librarys (JAR-files) I am using when
here is the problem case i am writing a little third party library. In
I stumbled upon a weird problem with adding two linked lists into a third
I have a problem deserializing some XML; the XML supplied by a third party
I'm using Spring 2.5 MVC and want to add another third-party Servlet. The Problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.