WordPress.org

Support

Support » WP-Advanced » [Resolved] Cutting the content…

[Resolved] 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 ‘[Resolved] Cutting the content…’ is closed to new replies.
Skip to toolbar