Trimming the Content
-
I am using the following code to display the content:
.strip_tags(get_post($_REQUEST['WP_ID'])->post_title)."\r\n";
Now my requirement is that i want to restrict the content to certain number of characters say 40. What additional code i need to add to the above code.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trimming the Content’ is closed to new replies.