wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=3&post_type=post
This is the link when I click on the backend category name:
$args = array( 'post_type' => 'post' , 'orderby' => 'menu_order' , 'order' => 'ASC' , 'posts_per_page' => -1);
By using this I want to display the post for that particular category of tag_id=3
. How can I do this?
This is the full code:
<div class="gallery">
<?php
$i = 1;
$args = array( 'post_type' => 'post' , 'orderby' => 'menu_order' , 'order' => 'ASC' , 'tag_id'=> 3 , 'posts_per_page' => -1);
$wp_query = new WP_Query($args);
$count = $wp_query->found_posts;
while ( have_posts() ) : the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
?>
<a href="<?php echo $image[0]; ?>" title="<?php the_title();?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail('thumbnail'); }?></a>
<?php $i++; endwhile;?>
</div>
you could use WP_Query for display post by tag_id
try like this: