How to add 2 posts under another post? Formatting should be intact
Your code is almost done and it’s missing a key point. Here’s the whole one you need to get it done (put in functions.php): function add_2_articles_if_less_than_200( $content ) { global $post; if ( $post->post_type == ‘post’ ) { // Use $post->post_content here as its content is raw – not formatted with HTML. $count = mb_strlen( … Read more