$attributes['number_items'] ) { $attachments = array_slice( $attachments, 0, $attributes['number_items'] ); } } if ( isset( $attachments ) && $attachments ) { ?>
> ID ) ) { $portfolio_entry = new Sight_Entry( $attributes, $options ); // Set settings. $portfolio_entry->attachment_id = $attachment->ID; // Init portfolio entry. $portfolio_entry->init(); require apply_filters( 'sight_portfolio_item_path', SIGHT_PATH . 'render/handler/portfolio-entry.php', $attributes, $options, $portfolio_entry ); } } ?>