Truncate wp_get_archives
-
so basically, i use this string on my website to get the most recent articles.
<?php wp_get_archives('type=postbypost&limit=8&format=html'); ?>But as some of the title are longer than others, they sometimes spread over two lines which isn’t intended. so basically i am wondering how i would go about limiting how many characters are shown and produce a similar result to the example below.Original Title:
Hello this is a really long title for an articlelimiting the characters:
Hello this is a really long…i have looked at find a solution to this but there doesn’t seem to be on, or at least i cant find one…
thanks for your help
The topic ‘Truncate wp_get_archives’ is closed to new replies.