<?php // the_content(); $content = apply_filters('the_content', get_the_content()); $content = explode("</p>", $content); $count = count($content); $placement = round($count / 2); $paragraphAfter[$placement] = ''; // Can insert text if wanted. for ($i = 0; $i < $count; $i++) { if (array_key_exists($i, $paragraphAfter)) { echo $paragraphAfter[$i]; get_template_part('parts/ads/lb-article-1'); } echo $content[$i] . "</p>"; } custom_wp_link_pages(); ?> <?php } ?> </div> <?php
" <?php post_class(); ?> > <?php $gte = get_the_content(); if ($gte == '') { _e('This post seems to contain nothing.', 'Ferret'); } else { echo the_content(); } ?> </div> </div> <?php custom_wp_link_pages(array('before' => '<nav class="page-nav"><p><span class = "ona">' . __('Pages:', 'Ferret') . '</span>', 'after' => '</p></nav>', 'link_before' => '<span class="page-link">', 'link_after' => '</span>')); ?> <footer class = 'ex-footer' > <?php if (is_single()) { if (get_the_category() != '') { ?> <hr /> <span class = "categ"> <span class="genericon genericon-category" title = "Category"></span> <span class = "linka"><?php echo the_category(', '); ?> </span> </span> <?php }