• Resolved Lomaski

    (@lomaski)


    Hi!
    So a have some tags at my site with some post_types and a tag.php page, the problem is: one of the tags shows normally (tag_id = 18) but any other ones doesn’t show in the tag.php page, actually shows a single post from the tag 18 .
    the code that gets my tag_id:

    <?php get_header();?>
    <?php
    $posttags = get_the_tags();
    if ($posttags) {
      foreach($posttags as $tag) {
        $tagid = $tag->term_id;
    	$args=array(
    					'post_type' => array('post', 'video', 'lookbook'),
    					'tag__in' => array($tagid)
    				);
      }
    }
    				query_posts($args);
    ?>

    BTW taxonomies.php doesn’t work at all, the tags and categories are shared between post and post_types

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tag.php not working (gets one tag but not any other)’ is closed to new replies.