Basically what I want to do is showing Student’s information from custom post type call students and filter by student’s name or room number which are saved in custom field value.
For example I have a custom post type called students.
and in the post, there are custom field called
1. Student’s last name
2. select field for Room no where a student is belong to.
for example 1107,1108, 1109 and 1110
and I want to get the title of the post by the select fields.
so showing student’s name in room 1107.
now code i have so far is
` <?php query_posts( ‘post_type=students’ );?>
<?php while ( have_posts() ) : the_post();?>
<li><?php the_title();?></li>
<?php endwhile;?>
<?php wp_reset_query();?>`
and i don’t know how i can develop it further.
any help will be very helpful.
thanks