WordPress.org

Support

where to add shortcode

  • <?php while (have_posts()) : the_post();

    $paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;
    $args = array( ‘posts_per_page’ => -1,
    ‘offset’=> 0,
    ‘post_type’ => ‘portfolio’
    );

    $all_posts = new WP_Query($args);

    while($all_posts->have_posts()) : $all_posts->the_post();

    $portfolio_terms = wp_get_object_terms($post->ID, ‘portfolio_category’);
    $portfolio_class = “folioItem ” . $portfolio_terms[0]->slug;
    $portfolio_sort = $portfolio_terms[0]->slug . ‘[1][0]’;
    $portfolio_type = $portfolio_terms[0]->slug;

    ?>

    http://wordpress.org/extend/plugins/baw-post-views-count/

  • The topic ‘where to add shortcode’ is closed to new replies.
Skip to toolbar