How to use ads after every 3 pragrapah
-
we are checking paragraph with
</p>
tag but empty<p>
tag also counting so every 3 paragraph logic is not working due to empty<p>
tagwe are checking paragraph like this
$closing_tag = '</p>'; $paragraphs = explode( $closing_tag, $content ); foreach ( $paragraphs as $index => $paragraph ) { //here we want to check whether $paragraph is empty or not something like if($paragraph === '<p> '){ echo "empty"; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to use ads after every 3 pragrapah’ is closed to new replies.