Search Players
AICF ID | First Name | Last Name | City | State | Gender | Status | View |
---|---|---|---|---|---|---|---|
123456 | John | Doe | City 1 | State 1 | Male | Active | |
789012 | Jane | Smith | City 2 | State 2 | Female | Inactive |
‘posts_per_page’ => -1, // Display all search results
‘s’ => sanitize_text_field($_GET[‘s’]), // First name or last name search
‘meta_query’ => array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘aicf_id’, // Replace ‘aicf_id’ with your custom field name for AICF ID
‘value’ => sanitize_text_field($_GET[‘aicf_id’]),
‘compare’ => ‘=’
),
array(
‘key’ => ‘fide_id’, // Replace ‘fide_id’ with your custom field name for FIDE ID
‘value’ => sanitize_text_field($_GET[‘fide_id’]),
‘compare’ => ‘=’
)
)
);
// Perform the search query
$search_query = new WP_Query($search_args);
// Check if any players are found
if ($search_query->have_posts()) {
?>
$search_query->the_post();
?>
AICF ID | First Name | Last Name | City | State | Gender | Status | View |
---|---|---|---|---|---|---|---|
View |
Home/Search Players
AICF ID | First Name | Last Name | City | State | Gender | Status | View |
---|---|---|---|---|---|---|---|
199991RJ2023 | Ravindra | Sharma | Jaipur | Rajasthan | M | Active |
Player DetailsFirst Name: Ravindra Last Name: Sharma City: Jaipur State: Rajasthan Gender: M Status: Active |
199990RJ2023 | AARAV | DAD | Bhilwara | Rajasthan | M | Active |
Player DetailsFirst Name: AARAV Last Name: DAD City: Bhilwara State: Rajasthan Gender: M Status: Active |