show ad after # paragraphs
You need a post_meta field to let an author decide after how many paragraphs the ad is inserted, if you want to do it like that, and not with a shortcode. So create a custom field called f711_insert_after_no_p, and use your function like this: if ( is_single() && ! is_admin() ) { $show_after = get_field(‘show_after’); … Read more