Skip to content

Instantly share code, notes, and snippets.

@bizzthemes
Created January 12, 2014 21:22
Show Gist options
  • Save bizzthemes/8390745 to your computer and use it in GitHub Desktop.
Save bizzthemes/8390745 to your computer and use it in GitHub Desktop.
Display sidebar before each single post entry
<?php
//* Do NOT include the opening php tag, only copy the code below
//* Display sidebar before each single post entry
add_action( 'bizznis_before_entry', 'custom_after_entry_widget' );
function custom_after_entry_widget() {
if ( is_singular( 'post' ) ) {
# function that returns sidebar widgets for the registered area
bizznis_widget_area( 'before-entry', array(
'before' => '<div class="before-entry widget-area">',
'after' => '</div>',
) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment