inster_post_ads.php

<?php // ignore this add_filter( 'the_content', 'insert_post_ads' ); function insert_post_ads( $content ) { // inster your code between the ' ' $ad_code = '<div>Ads code goes here</div>'; if ( is_single() && ! is_admin() ) { /* * 2 = the number of the paragraph */ return insert_after_paragraph( $ad_code, 2, $content ); } return $content; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.