Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Last active August 29, 2015 14:04
Show Gist options
  • Save themeblvd/f3a1822bc351b510e5f4 to your computer and use it in GitHub Desktop.
Save themeblvd/f3a1822bc351b510e5f4 to your computer and use it in GitHub Desktop.
For older themes prior to framework 2.5, this will put the "Featured Image Display" option for single posts back how it was before. Theme framework will still handle this meta option as before.
<?php
/**
* For older themes prior to framework 2.5, this
* will put the "Featured Image Display" option
* for single posts back how it was before. Theme
* framework will still handle this meta option
* as before.
*/
function theme_post_meta( $setup ) {
$setup['options']['tb_thumb']['options']['full'] = __( 'Show full-width featured image', 'themeblvd' );
$new = array();
foreach ( $setup['options']['tb_thumb']['options'] as $key => $value ) {
$new[$key] = $value;
if ( $key == 'default' ) {
$new['small'] = __( 'Show small featured image', 'themeblvd' );
}
}
$setup['options']['tb_thumb']['options'] = $new;
return $setup;
}
add_filter( 'themeblvd_post_meta', 'theme_post_meta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment