There are entries on the page with one common rubric (fences). When I press the button, I need to display entries from the new rubric (the rubric has already been created) and only them (for example, vertical monuments and that would be knocked out) There is a code for removing records:

<?php if ( have_posts() ) : query_posts('cat=9'); while (have_posts()) : the_post(); ?> <div class="new-items-numb bottom"> <div class="new-item-picture"> <?php the_post_thumbnail('full');?> </div> <span class="item-model"><?php echo the_title(); ?> </span> <input class="item-button" type="button" value="Заказать"> </div> <?php endwhile; endif; wp_reset_query(); ?> 
  • The problem is not clear - the heading page will display everything. And this one is ancient and dangerous. It can no longer be used. - SeVlad
  • @SeVlad The problem is whether it is possible when clicking on a button on the same page, on which some entries with a certain rubric are displayed, to output other entries to another rubric, and how to write it on the button. Thank you - Vlad Apalkov

0