WordPress.org

Ready to get started?Download WordPress

Forums

Post Views Count
where to add shortcode (1 post)

  1. D.zahran
    Member
    Posted 1 year ago #

    <?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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.