How to show custom taxonomy child posts through shortcode in WordPress

That is a very messy shortcode but it looks like if you pass a term slug into the shortcode cat att this part… if (of_get_option(‘shortcat_video’, ‘1’) == ‘1’) { $query = array( ‘posts_per_page’ => $items, ‘orderby’ => $orderby, ‘order’ => $order, ‘post_type’ => ‘video’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘videos’, ‘field’ => ‘slug’, ‘terms’ … Read more

Custom Taxonomy + JQuery Tabs

This should work, but it’s not tested <div id=”tabs”> <ul id=”tab-menu”> <?php $terms = get_terms(‘category’); global $wpdb; $posts = array(); if ( is_array($terms) && ! empty($terms) ) { $active = null; foreach ( $terms as $i => $term ) { $ids = $wpdb->get_col( $wpdb->prepare(“SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d”, $term->term_taxonomy_id )); $articles_count = … Read more