• 13-06-2022, 08:55:38
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba,
    Kullandığım temanın functions.php dosyasında shorcode ekleyerek içeriklere kolayca buton ekleyebiliyorum örnek: [urunegit] bu buton ismini dosyadan sorunsuzca ayarlanıyor ama ben kodlarla uğraşmak yerine Codestar Framework tema paneline entegre etmeye çalıştım ama bir türlü okumadı kodların tam neresinde hata var.



    $options = get_option( 'yt_panel' ); // unique id of the framework

    add_shortcode( 'urunegit', 'action_button_shortcode' );
    function action_button_shortcode( $atts ) {
    extract( shortcode_atts(
    array(
    'color' => 'blue',
    'title' => '<?php echo $options ["text_urun_adi"]; ?>',
    'target' => '_blank',
    'subtitle' => '<?php echo $options ["text_urun_adi"]; ?>',
    'url' => 'https://google.com/'
    ),
  • 13-06-2022, 09:10:08
    #2
    $options ["text_urun_adi"], bu şekilde değişip deneyin.
  • 13-06-2022, 09:34:03
    #3
    harew1 adlı üyeden alıntı: mesajı görüntüle
    $options ["text_urun_adi"], bu şekilde değişip deneyin.
    Yok malesef olmadı