Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

I need some PHP help; I'm trying to write an automated way for a WordPress post to truncate after 256 words. this is what I have, but it's not working. help?

,<""); for ($i=0; $i<12; $i++) { echo $post[$i]; } echo ""; ?>
I need some PHP help; I'm trying to write an automated way for a WordPress post to truncate after 256 words. this is what I have, but it's not working. help?
,<""); for ($i=0; $i<12; $i++) { echo $post[$i]; } echo ""; ?>
@Computer Science

OpenStudy (anonymous):

ahh! here{ <?php $post=str_word_count(the_content(), 2, !@#$%^&*()-_=[]{}\|;:'/?.>,<&quot;"); for ($i=0; $i<12; $i++) { echo $post[$i]; } echo "<!--more-->"; ?>

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!