Cutting the content…
-
Hi everyone!
I am trying to cut the_content after the first paragraph (e.g. after </p>) but I’ve had no luck for several hours and searching for this difficult so I’m turning to you guys.
I realize I will have to use some form you string cut (e.g. strstr() < but this one only allows me to cut out everything before </p> unless I run PHP6 which is not possible)..
So, what I want is something that cuts like this.
The content is: <p> Hi everyone! </p> <p> I don’t want this to print </p>
And I want this to print: <p> Hi everyone! </p>I hope this makes sense.
Kind Regards,
Jan-Erik
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Cutting the content…’ is closed to new replies.