If you want to have the post metas of your single posts displayed before the title and not after the title, add this little bit of code to your child theme’s functions.php
add_action ('__before_body' , 'move_single_post_metas'); function move_single_post_metas() { //checks if we are displaying a single post. Returns false if not. if ( ! is_single() ) return; remove_action ( '__after_content_title' , array( TC_post_metas::$instance , 'tc_set_post_metas_hooks' ), 20); add_action ('__before_content_title' , array( TC_post_metas::$instance , 'tc_set_post_metas_hooks'), 10); }
2 thoughts on “Move Post Meta before Title”
Hi,
A slight modification is required.
Use the following code.
will this work after updating to version 3.4.33