Show content after the first and second paragraph
My way to do this (see update below): function addParagraphs($content) { // you can add as many as you want: $additions = array( ‘<p>After 1st paragraph</p>’, ‘<p>After 2nd paragraph</p>’ ); $content = get_the_content(); $output=””; // define variable to avoid PHP warnings $parts = explode(“</p>”, $content); $count = count($parts); // call count() only once, it’s faster … Read more