private function get_episode() { $query = get_transient('nx_latest_episode'); if (false === $query) { $args = array("post_type" => "episode", "posts_per_page" => 1); $args = convergence_exclude_category('tf', $args); $args = apply_filters('confluence_latest_episode_args', $args); $query = new WP_Query($args); set_transient('nx_latest_episode', $query, 60 * 60 * 24); } return $query; }
<!-- celebrate #villain --> </div> <div id="content-container"> <div id="content-wrapper"> <div id="content" class="hfeed content home"> <div id="showboard"> <div id="showboard-wrapper"> <!-- new front page events coming soon! --> <?php $showboard_top_arguments = array("post_type" => "episode", "posts_per_page" => 6, 'post__not_in' => $villain_episodes); $showboard_top_arguments = convergence_exclude_category('tf', $showboard_top_arguments); $showboard_top_arguments['tax_query'] = array(convergence_exclude_episode_attributes('hidden')); $loop_top = new WP_Query($showboard_top_arguments); ?> <div id="top-shelf"> <?php while ($loop_top->have_posts()) { $loop_top->the_post(); ?> <?php get_template_part('showboard-loop'); ?> <?php } ?>
function convergence_latest_episode_filter($args) { $args = convergence_exclude_category('tf', $args); return $args; }