Footer Example
<?php
//this would go into my funcitons.php
register_sidebar( array(
'name' => __( 'Footer Signup Form', 'themename' ),
'id' => 'footer-signup',
'description' => __( 'Add widgets here to appear in your sidebar.', 'themename' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h2 class="footer-signup">',
'after_title' => '</h2>',
) );
?>
<?php
/**
This would go in my custom page.
If my page was named Custom, I'd place this in page-custom.php
If this was a custom pust type that had a slug of custom, I'd place this in single-custom.php
**/
?>
<?php if ( is_active_sidebar( 'footer-signup' ) ) : ?>
<div class="footer">
<?php dynamic_sidebar( 'footer-signup' ); ?>
</div>
<?php endif; ?>