wordpress snippets part 6

Display post titles with a custom length

 you can use the function on your theme files. Just pass how many characters you want to display as a parameter. In the following exemple, only the first 20 chars of the title will be displayed:

<?php ODD_title(20); ?>

No comments:

Post a Comment