}
    ?>
            <?php 
    if ($portfolioID || $categoryID) {
        $next_post_link = t4p_next_post_link_plus(array('format' => '%link', 'link' => __('Next', 'evolve'), 'in_same_tax' => 'portfolio_category', 'in_cats' => $nav_categories, 'return' => 'href'));
    } else {
        $next_post_link = t4p_next_post_link_plus(array('format' => '%link', 'link' => __('Next', 'evolve'), 'return' => 'href'));
    }
    ?>
            <?php 
    if ($next_post_link) {
        if ($portfolioID || $categoryID) {
            if ($portfolioID) {
                $next_post_link = t4p_addUrlParameter($next_post_link, 'portfolioID', $portfolioID);
            } else {
                $next_post_link = t4p_addUrlParameter($next_post_link, 'categoryID', $categoryID);
            }
        }
        ?>
                <a href="<?php 
        echo $next_post_link;
        ?>
" class="next" rel="next"><?php 
        _e('Next', 'evolve');
        ?>
</a>
            <?php 
    }
    ?>
        </div>
        <?php 
Ejemplo n.º 2
0
            echo $portfolio_tax_name;
            ?>
</a></li>
                <?php 
        }
        ?>
            </ul>
        <?php 
    }
    ?>
        <div class="portfolio-wrapper">
            <?php 
    while ($gallery->have_posts()) {
        $gallery->the_post();
        if ($pcats) {
            $permalink = t4p_addUrlParameter(get_permalink(), 'portfolioID', $current_page_id);
        } else {
            $permalink = get_permalink();
        }
        if (has_post_thumbnail() || get_post_meta($post->ID, 'pyre_video', true)) {
            ?>
                    <?php 
            $item_classes = '';
            $item_cats = get_the_terms($post->ID, 'portfolio_category');
            if ($item_cats) {
                foreach ($item_cats as $item_cat) {
                    $item_classes .= urldecode($item_cat->slug) . ' ';
                }
            }
            ?>
                    <div class="portfolio-item <?php