$posts_per_page, 'category' => $categories, 'exclude' => get_the_id() ) ); if ( count( $related_posts ) > 0 ) { $grid_loop_layout = ' class="layout-'. esc_attr( $grid_layout ) .'"'; ?>