Featured image of post How to Add Anything After Wordpress Title in Backend ?

How to Add Anything After Wordpress Title in Backend ?

Learn how to add any Html / Text after wordpress editor title field.

hi 👋 Learn how to add any Html / Text after wordpress editor title field.

Note: This is only for the Classic Editor i am not sure about Gutenberg/Block Editor.

Actually you will learn about how

  • How to add title in Classis editor
  • How to add in Gutenberg Editor

Add this in your function.php file

Here our post type is Tags.

1
2
3
4
5
6
7
8
9
<?php
add_action( 'edit_form_before_permalink' , 'add_text_below_tag_post_title' );
function add_text_below_tag_post_title( ){
    global $post;
    if ( get_post_type($post) === 'tags' ){
        echo "<span style='color: red'>demo alert (THis is the red text)</span>";
    }
}
?>



If it is helpful and saves your valuable Time ⏱ please show your support 👇. Buy Me A Coffee
Buy me A Coffee, Thank you and canva ( For Beautiful designs ). Thanks for the reading 👍.
Built with Hugo
Theme Stack designed by Jimmy