zykk16
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
@dcooney, just turn the circle, where the record should be displayed and all
Forum: Plugins
In reply to: [Videopack] Show video views in a separate location on the websiteThank you so much:)
Forum: Plugins
In reply to: [Videopack] Show video views in a separate location on the website<?php $args = array( 'post_type' => 'attachment', 'post_mime_type' => 'video', 'post_status' => null, 'category' => 17 ); $posts = get_posts($args); $video_meta = get_post_meta($post->ID, '_kgvid-meta', true); if (is_array($video_meta) && array_key_exists('starts', $video_meta)) foreach($posts as $post) : setup_postdata( $post ); ?> <tr> <td><h3 class="title-3"><a href="<?php echo get_permalink( $post->ID ); ?>" target="_blank"><?php echo $post->post_title; ?></a></h3></td> <td style="text-align: center;"><?php echo number_format(intval($video_meta['starts'])).' views'; ?></td> <td style="text-align: center;"><?php comments_number('0', '1', '%'); ?></td> <td style="text-align: center;"><?php the_author(); ?></td> <td><?php $category = get_the_category(); echo $category[0]->cat_name; ?></td> <td style="text-align: center;"><?php the_date(); ?></td> </tr> <?php endforeach; wp_reset_postdata(); ?>Thanks for the reply 🙂 Please tell me, through the cycle for some reason he does not want to withdraw. I have yet poorly with php.
- This reply was modified 9 years, 2 months ago by zykk16.
Viewing 3 replies - 1 through 3 (of 3 total)