function bran23_portfolio_source($atts, $content = null) { $settings = shortcode_atts(array( 'max' => -1, 'cols' => 4, 'portfolio_id' => -1, 'more_link' => false, 'empty' => false ), $atts); $query_settings = array( 'post_type' => 'portfolio', 'post_status' => 'publish', 'posts_per_page' => ($settings["portfolio_id"] != -1) ? 3 : $settings["max"], 'post__not_in' => array($settings["portfolio_id"]), 'meta_key' => '_bran23_hide_project', 'meta_compare' => '!=', 'meta_value' => '1', ); if (!($settings["portfolio_id"] === -1 || $settings["empty"])){ $terms = get_the_terms($settings["portfolio_id"], 'portfolio_category'); if (empty($terms)) $terms = array(); $query_settings = array_merge($query_settings, array( 'orderby' => 'rand', 'tax_query' => array( array( 'taxonomy' => 'portfolio_category', 'field' => 'slug', 'terms' => wp_list_pluck($terms, 'slug') ) ) ) ); } $portfolio_loop = new WP_Query($query_settings); $output = ""; if (is_front_page()) $output = '
With the help of brandù we established Facebook and Twitter channels. We were able to effectively promote our event and brand, engage followers and build up a small Baltic Sea region gaming community. brandù’s work has been professional and swift throughout the cooperation.
Felix Lang
Baltic Sea Games, Project Assistant
📸 Photos from the event: © BGZ & Mindaugas Mikulėnas