WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mhgaither
    Member
    Posted 3 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?

    Thanks,

    - Michael (michaelgaither.com/home)

  2. chinmoy
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic