Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Reply To: Side bars on portfolio

New Front EN Support Forums Ikebana Theme Support Side bars on portfolio Reply To: Side bars on portfolio


Hey Damien,

could you please clarify: in which sense does the “Large” size stop working when you add the code above? The class is not included into the post class, the meta box does not show, or the boxes do not receive a proper size?

Have you added an additional option for the size drop-down metabox (also in the functions.php file, look for the “Add meta box to portfolio items with post box size options” title)?

Regarding the code, please try merging the two functions into one:

// Add custom post class for box size
function size_class($classes) {
global $post;
$postclass = ”;
if ( get_post_meta($post->ID, ‘satori_post-size’, true) == ‘Large’ ) {
$postclass .= ‘post-size-large’;
if ( get_post_meta($post->ID, ‘satori_post-size’, true) == ‘Long’ ) {
$postclass1 .= ‘post-size-long’;
$classes[0] = $postclass;
return $classes;
add_filter(‘post_class’, ‘size_class’);

Andrew / Satori Studio