Add end mark at the end of every article

The end of the_content() is a </p> tag. It sounds like you want to include your end mark before that last </p> tag. If so, you need a function that filters the_content(). Something like: function yang_end_mark( $content ) { $content = substr_replace($content, ‘<span>&#128282;</span></p>’, strrpos($content, ‘</p>’), strlen(‘</p>’)); return $content; } add_filter( ‘the_content’, ‘yang_end_mark’, 25 ) ;

How to use TOC with ACF?

You can use the the acf/save_post action to copy the content from your custom ‘full_text’ field over to the normal post content field, so it can automatically be accessed by toc+ and other plugins. add_action( ‘acf/save_post’, ‘wpse199256’, 20 ); function wpse199256( $post_ID ) { global $wpdb; $post = get_post( $post_ID ); $wpdb->update( $wpdb->posts, array( ‘post_content’ … Read more

custom template only for content

You can’t override template parts. Even if you could, you would have no way of knowing what template part you’d need to replace. A theme is only required to have an index.php file and there are no restrictions or naming convention for template parts. Your options are to create a full template and leave it … Read more