Created
February 10, 2015 16:06
-
-
Save akinayturan/83ba57535b1f7b2a6040 to your computer and use it in GitHub Desktop.
WP ~ Yazı Başlığı Uzunluğunu Sınırlama
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 | |
//WP ~ Yazı Başlığı Uzunluğunu Sınırlama //epfarki.com | |
function kisa_baslik($char) { | |
$title = get_the_title($post->ID); | |
$title = substr($title,0,$char); | |
echo $title; | |
} | |
?> |
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 kisa_baslik(20); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment