0

すべての投稿を通過する for ループで、投稿のすべてのタグを div のクラスの一部として追加するにはどうすればよいですか?

              <?php
      $page_name = $wp_query->post->post_name;
      query_posts('category_name='. $page_name .'&posts_per_page=-1&orderby=date&order=DESC');
      ?>
          <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="galleryItem ">
                    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
                   <div class="titlePlate">
                      <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php the_title(); ?></a></h3>
                  </div><!--END titlePlate-->
              </div><!--END galleryItem-->        

          <?php endwhile; else: ?>

              <p>Sorry, no posts matched your criteria.</p>

          <?php endif; ?><?php wp_reset_query(); ?>
4

1 に答える 1