How to create loop in custom page, and get id from url into this loop?
basically what you want to do is get the id from $_GET[‘id’] then you can use the WP_Query <?php wp_reset_postdata(); $args = array( ‘category’ => $_GET[‘id’], ‘order’ => ‘DESC’, ); $query = new WP_Query($args); if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); //do your stuff here…………………. endwhile; endif; ?> here $_GET[‘id’] will … Read more