Create signature (type) file for all posts? (2 posts)

  1. mhgaither
    Posted 5 years ago #

    I reference the same info (RSS feed, web site URL) in all of my blog posts. I currently copy/paste this from the previous post into each new one.

    Is it possible to set up a signature file in WP, so this info would already be there for me whenever I create a new post?


    - Michael (michaelgaither.com/home)

  2. chinmoy29
    Posted 5 years ago #

    write the code in your functions.php file

     function showSignature(){
       $sig = "This my signature";
       $content = apply_filters("the_content", $sig);
       echo $content;
     add_action("publish_post", 'showSignature');

    This just sample. You will modify it after test.

Topic Closed

This topic has been closed to new replies.

About this Topic