echo ThemexUser::$data['active_user']['profile_url']; ?> "><?php echo get_avatar(ThemexUser::$data['active_user']['ID']); ?> </a> </div> <?php get_template_part('module', 'links'); ?> </div> <div class="expert-text"> <h4 class="nomargin"> <a href="<?php echo ThemexUser::$data['active_user']['profile_url']; ?> "> <?php echo ThemexUser::$data['active_user']['profile']['full_name']; ?> </a> </h4> <span class="expert-signature"><?php echo ThemexUser::$data['active_user']['profile']['signature']; ?> </span> <?php echo themex_sections(ThemexUser::$data['active_user']['profile']['description'], 1); ?> </div> </div>
function themex_posts($atts, $content = null) { extract(shortcode_atts(array('number' => '1', 'order' => 'date', 'category' => '0'), $atts)); if ($order == 'random') { $order = 'rand'; } $args = array('post_type' => 'post', 'showposts' => intval($number), 'orderby' => $order); if (intval($category) != 0) { $args['category__in'] = array(intval($category)); } $query = new WP_Query($args); $out = '<div class="posts-listing">'; while ($query->have_posts()) { $query->the_post(); ob_start(); the_excerpt(); $GLOBALS['content'] = ob_get_contents(); ob_end_clean(); $GLOBALS['content'] = themex_sections($GLOBALS['content'], 1); $GLOBALS['content'] = do_shortcode($GLOBALS['content']); ob_start(); get_template_part('content', 'post'); $out .= ob_get_contents(); ob_end_clean(); } $out .= '</div>'; wp_reset_query(); return $out; }