WordPress.org

Support

Support » How-To and Troubleshooting » Create signature (type) file for all posts?

Create signature (type) file for all posts?

  • 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?

    Thanks,

    – Michael (michaelgaither.com/home)

Viewing 1 replies (of 1 total)
  • write the code in your functions.php file

    <?php
     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.

Viewing 1 replies (of 1 total)
  • The topic ‘Create signature (type) file for all posts?’ is closed to new replies.
Skip to toolbar