Adding a custom field after post title (ex.Example Title [30 Second Read])
You face two challenges in order to achieve your goal. The first is very simple. If one can be sure that the reading time for every post is 30 seconds, then your function needs an “else” statement to define the reading time as a suffix. The following would work. function wpd_title_prefix_filter( $title, $post_id ) { … Read more