Ejemplo n.º 1
0
/**
 * Adds the paramters to the WP_Tax query to exclude the 'hidden' episode attribute taxonomy.
 * @param type $query 
 * @return type
 */
function convergence_exclude_episode_attribute_hidden($query)
{
    if (is_object($query->tax_query) && !is_user_logged_in()) {
        $tax_query = $query->tax_query->queries;
        $tax_query['hidden'] = convergence_exclude_episode_attributes('hidden');
        $query->set('tax_query', $tax_query);
    }
    return $query;
}
Ejemplo n.º 2
0
                        <?php 
    get_template_part('showboard-loop');
    ?>
                        <?php 
}
?>
                    </div>

                    <?php 
/* ============================================================= */
?>
                    <!-- #top-shelf -->

                <?php 
$showboard_bottom_arguments = array("post_type" => "episode", "posts_per_page" => 3, 'category_name' => 'tf');
$showboard_bottom_arguments['tax_query'] = array(convergence_exclude_episode_attributes('hidden'));
$loop_bottom = new WP_Query($showboard_bottom_arguments);
?>

                    <div id="bottom-shelf">
                        <?php 
while ($loop_bottom->have_posts()) {
    $loop_bottom->the_post();
    ?>
                        <?php 
    get_template_part('showboard-loop');
    ?>
                        <?php 
}
?>
Ejemplo n.º 3
0
get_header();
// Loads the header.php template.
?>

    <div id="content-container">
        <div id="content-wrapper">
            <div id="content" class="hfeed content latest">

		<?php 
do_atomic('before_content');
// hybrid_before_content
?>

		<?php 
$latest_arguments = array('post_type' => 'episode', 'posts_per_page' => get_option('posts_per_page'), 'paged' => $paged);
$lastest_arguments['tax_query'] = array(convergence_exclude_episode_attributes('hidden'));
$wp_query = new WP_Query($latest_arguments);
$more = 0;
?>

		<?php 
if ($wp_query->have_posts()) {
    while ($wp_query->have_posts()) {
        $wp_query->the_post();
        ?>

			<div id="post-<?php 
        the_ID();
        ?>
" class="<?php 
        hybrid_entry_class();