Topic: Add Widget Area

How do I add a custom widget space to the end of my posts?

I want it to follow the same CSS classes of my Bottom Content widgets. What code do I use to add the new space (so I can add widgets in the admin area)?

This is the current code of my bottom content widgets:

<?php $sidebars = wp_get_sidebars_widgets(); ?>

<div id="bottom-content-1">
    <?php if ( $sidebars['sidebar-4'] ) : ?>
    <ul class="clearfix xoxo">
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #1') ) : ?>
        <?php endif; ?>
    </ul>
    <?php endif; ?>
</div>

<div id="bottom-content-2">
    <?php if ( $sidebars['sidebar-5'] ) : ?>
    <ul class="clearfix xoxo">
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #2') ) : ?>
        <?php endif; ?>
    </ul>
    <?php endif; ?>
</div>

2

Re: Add Widget Area

You mean in the single post template, or the archives?

Re: Add Widget Area

I want to add it to the end of my regular post types, but also another section under a custom post type. I'd assume this is done by registering 4 (2 on each page, just like the bottom content widgets). I'd like to keep the same CSS style that the normal bottom content widget uses.

Thanks for the help, zy!

Re: Add Widget Area

Any ideas?

Re: Add Widget Area

Anyone know?