I have a page-doctors.php with the list of doctors, these doctors are registered as post_types, the code that taking all post_type doctors is:
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
$args = array(
'post_type' => 'cadastro-medicos',
'orderby'=> 'title',
'order' => 'ASC' ,
'posts_per_page' => 10,
'paged' => get_query_var('paged')
);
query_posts($args);
while (have_posts()) : the_post();
On that page has a form for visitors to write the doctor's name and/or medical code and search.
The difficulty is how I can search these demand information in post_type.
Can anyone help me?
Aucun commentaire:
Enregistrer un commentaire