CloudBT CloudBT
  • 26-01-2019, 00:15:41
    #10
    Kirkbir adlı üyeden alıntı: mesajı görüntüle
    2019-01-23T06:48:19+00:00 bu şekilde olması için nasıl kod kullanmam lazım hocam?
    <?php echo get_the_date('Y-m-d');?> <?php the_time( 'H:i:s' ); ?>
    çıktı : 2018-12-26 23:25:08

    <?php echo get_the_date('Y-m-d');?>T<?php the_time( 'H:i:s' ); ?>+00:00
    çıktı : 2018-12-26T23:25:08+00:00

    botlar ikisini de algılar sorun yaşamazsınız.
  • 26-01-2019, 00:17:59
    #11
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Asynchronous adlı üyeden alıntı: mesajı görüntüle
    <?php echo get_the_date('Y-m-d');?>
    <?php the_time( 'H:i:s' ); ?>
    yukarıdaki kod yıl-ay-gün şeklinde çıktı yapar,ikinci satırdaki kod saat bilgileri için kullanılıyor.istediğiniz formatı aşağıdaki php.net linkinde bulabilirsiniz.

    http://php.net/manual/tr/function.date.php
    https://wordpress.stackexchange.com/...-for-each-post
    Asynchronous adlı üyeden alıntı: mesajı görüntüle
    <?php echo get_the_date('Y-m-d');?> <?php the_time( 'H:i:s' ); ?>
    çıktı : 2018-12-26 23:25:08

    <?php echo get_the_date('Y-m-d');?>T<?php the_time( 'H:i:s' ); ?>+00:00
    çıktı : 2018-12-26T23:25:08+00:00

    botlar ikisini de algılar sorun yaşamazsınız.
    +r10 verdim hocam cok sağol.