This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.php'ye eklenecek kod | |
<div id="infinite-scroll-wrap"> | |
<?php next_posts_link('Sonraki sayfa'); ?> | |
</div> | |
// JS'ye eklenecek fonksiyon | |
jQuery(document).ready(function() { | |
jQuery('#icerik .sagalan').infinitescroll({ // yazıların bulunduğu class ya da id | |
navSelector : "#infinite-scroll-wrap", // Seçicinin bulunduğu id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_embed_register_handler( 'gist', '/https?:\/\/gist\.github\.com\/([a-z0-9]+)(\?file=.*)?/i', 'fshn_gist_embed' ); | |
function fshn_gist_embed( $matches, $attr, $url, $rawattr ) { | |
$embed = sprintf( | |
'<script src="https://gist.github.com/%1$s.js%2$s"></script>', | |
esc_attr($matches[1]), | |
esc_attr($matches[2]) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo edd_get_cart_quantity(); ?> // Sepetekki ürün sayısı | |
<?php echo edd_get_cart_total(); ?> // Sepetteki toplam fiyat | |
<?php echo edd_get_checkout_uri(); ?> // Sepete yönlendiren kod | |
<?php edd_price($post->ID); ?> // Ürünün fiyatı | |
Functions.php'ye eklenecek kodlar | |
// Download uzantısını kendi uzantınız ile değiştirmek | |
define('EDD_SLUG', 'uzantiadi'); |
NewerOlder