post

<?php
define('WP_USE_THEMES', false);
require('wp-load.php');

// Referans listesi (örnek olarak, her satırda bir referans)
$referans = array(
    'TDK-YTSAM TURKISH-SPEAKING COUNTRIES INTERNATIONAL CONGRESS AND CONFERENCE',
'CARBON MARKETS PREPARATION PARTNERSHIP Türkiye PROJECT (Annual Meetings)',
'KBB-BBC (ENT) INTERNATIONAL ENT-HEAD AND NECK SURGERY CONGRESS',
'INTERNATIONAL OTOLOGY AND NEUROOTOLOGY CONGRESS',
'TSE- INTERNATIONAL PRESIDENTS MEETING - GENERAL ASSEMBLY AND WORKSHOP',
'TSE- INTERNATIONAL PRESIDENTS MEETING - GENERAL ASSEMBLY AND WORKSHOP',
'TÜBA- OUTSTANDING YOUNG SCIENTIST AND COPYRIGHT WORKS AWARDS',
'TÜBİTAK- ULAKBIM PUBLIC OPEN SOURCE CONFERENCE (KAK)',
'ICA-COOP EUROPE INTERNATIONAL CONGRESS&GENERAL ASSEMBLY MEETING',
'ICA-ICAO INTERNATIONAL CONFERENCE AND GENERAL ASSEMBLY MEETING',
'TSE NEW EUROPEAN MEDICAL DEVICE REGULATIONS MEETING',
'TAGEM- NATIONAL MEETING ON THE EFFECTS OF REGIONAL AND FREE TRADE AGREEMENTS ON TURKEYS FOREIGN TRADE',
'ORKOOP / TEST-OR INFORMATION MEETING ON DEVELOPMENT OF CERTIFICATION BASED ON NATIONAL QUALIFICATIONS',
'GAZİ UNIVERSITY FACULTY OF PHARMACY GPSS-I INTERNATIONAL SYMPOSIUM',
'GAZİ UNIVERSITY FACULTY OF PHARMACY GPSS-II INTERNATIONAL SYMPOSIUM',
'GAZİ UNIVERSITY FACULTY OF PHARMACY GPSS-III INTERNATIONAL SYMPOSIUM',
'INTERNATIONAL SPORTS SCIENCES CONGRESS',
'MSB-SOUTH-EASTERN EUROPE DEFENCE MINISTERIAL COORDINATION COMMITTEE AND POLITICAL-MILITARY STEERING COMMITTEE MEETING',
'NATIONAL PEDIATRIC BURNS CONGRESS',
'HACETTEPE MEDICINAL FACULTY ALUMNI MEETING OF ENT DEPARTMENT',
'PVCON-2018 INTERNATIONAL CONFERENCE',
'PVCON-2020 INTERNATIONAL CONFERENCE', 
'PVCON-2022 INTERNATIONAL CONFERENCE',
'MIDDLE EAR SURGERY AND BASIC AUDIOLOGY SYMPOSIUM',
'INTERNATIONAL ANTI-AGING CONGRESS',
'DIABET-2020 VISIONS&TARGETS INTERNATIONAL CONGRESS',
'OIE-EUROPEAN MEETINGS OF THE VETERINARIANS',
'INTERNATIONAL SYMPOSIUM ON THE PUBLIC HEALTH & GENOMICS',
'CARDIOLOGY-INTERNATIONAL CHRONIC-COMPLEX DISEASES AND GENETICS CONGRESS',
'S.O.R.G. INTERNATIONAL (European) MAXILLOFACIAL SURGERY SYMPOSIUM',
'MATHEMATICS EVENTS & INTERNATIONAL MATHEMATICS SYMPOSIUM',
'TECHNIQUES IN MICROVASCULAR SURGERY EUROPEAN WORKSHOP',
'ACUTE CORONARY SYNDROME” POST-GRADUATION TRAINING MEETING (CARDIOLOGY)',
'CURRENT TRENDS AND FUTURE EXPECTATIONS IN CLINICAL RESEARCH SYMPOSIUM',
'DMW-EUROPEAN DRUG METBABOLISM CONGRESS',
'EURO-QSAR-EUROPEAN PHARMACEUTICAL MOLECULAR MODELLING CONGRESS',
'INTERNATIONAL DERMATOLOGY&DERMATOPATHOLOGY CONGRESS',
'INTERNATIONAL ORAL AND MAXILLOFACIAL SURGERY CONGRESS',
'CLINICAL PHARMACOLOGY “RATIONAL DRUG USE” SEARCH MEETING',
'IMMPC-1 INTERNATIONAL PHARMACEUTICAL&MEDICINAL CHEMISTRY CONGRESS',
'INTERNATIONAL ASIA AND OCEANIA NUCLEAR MEDICINE AND BIOLOGY CONGRESS',
'POLITZER SOCIETY - 21. ANNUAL MEETING OF INT. SOCIETY FOR OTOLOGICAL SURGERY', 
'INTERNATIONAL MILITARY MEDICINE (GENERAL SURGERY) CONGRESS',
'ICAO-COGECA INTERNATIONAL MEETING OF WORLD AGRICULTURAL COOPERATIVES',
'OTOLOGY & ODIOLOGY INFORMATION MEETINGS  (ANNUAL MEETINGS)',
'GRONTMIJ-REACH&CLP TRAINING MEETINGS (ANNUAL MEETINGS)',
'MEB/ZOYOP-PSYCHOEDUCATION IN CHALLENGING LIFE EVENTS PROJECT TRAINING MEETINGS',
'MEB- SPECIAL EDUCATION AND GUIDANCE SERVICES, POST-TRAUMA GROUP INTERVENTION TRAINING CONFERENCE',
'ÇMVA-FADN EU PROJECT TRAINING AND INFORMATION MEETINGS',
'MINISTRY OF TRADE 27TH CONSUMER AWARD CEREMONY AND PAINTING COMPETITIONS AWARD CEREMONY',
    // ... diğer referanslar
);

// Referansları WordPress'e ekleyin
foreach ($referans) {
    $post_data = array(
        'post_title'    => $referans,
        'post_status'   => 'publish',
        'post_type'     => 'referans', // Özel post tipi adı
    );

    $post_id = wp_insert_post($post_data);

    if ($post_id) {
        echo 'Referans eklenmiş: ' . $referans . ' (ID: ' . $post_id . ')<br>';
    } else {
        echo 'Referans eklenirken bir hata oluştu: ' . $referans . '<br>';
    }
}
?>