Problem with tag page
-
Hi to all.
I have a problem with tag page. This is the code of the page:
<?php get_header(); $vbegy_sidebar_all = vpanel_options("sidebar_layout"); $tag_des = vpanel_options('tag_description'); $post_style = vpanel_options("post_style"); if ($tag_des == "on") { $tag_description = tag_description(); if (!empty( $tag_description)) {?> <div class="v-post post-style-2 category-description"> <div class="post-wrap"> <div class="post-inner"> <div class="post-title"> <?php echo __("Tag","vbegy").": ".esc_attr(single_tag_title("", false)); $tag_rss = vpanel_options("tag_rss"); if ($tag_rss == "on") {?> <a href="<?php echo esc_url(get_tag_feed_link(esc_attr(get_query_var('tag_id'))))?>"><i class="fa fa-rss"></i></a> <?php }?> <span class="post-point"></span></div><div class="clearfix"></div> <?php echo ($tag_description); ?> </div><!-- End post-inner --> </div><!-- End post-wrap --> </div><!-- End post --> <?php } } $args = array( 'post_type' => array ( 'post', 'recipe','video'), 'tag__in' => get_query_var('tag_id'), 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ), 'posts_per_page' => 30 ); get_template_part("loop","tag"); get_template_part("includes/pagination"); wp_reset_query(); get_footer();?>
I need to show 3 post type with the same tag, but with this code it doesn’t work. Other pages work correcty.
how can I solve this problem?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem with tag page’ is closed to new replies.