WordPress.org

Support

Support » How-To and Troubleshooting » Looking for a plugin to insert text

Looking for a plugin to insert text

  • I want to insert a signature and closing text at the end of my posts. Does anyone know of a plugin that allows dynamic text to be inserted?

    I found some plugins, but they always put the text after the social networking plugins. Is there a plugin that can be inserted as a code where I want it to appear?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes and no … I don’t actually know a plugin off the top of my head but I have a piece of code that could be modified to do it fairly quickly (http://thisismyurl.com/6166/replace-wordpress-static-urls-dynamic-urls/). That code has a specific purpose but if you modify it to so instead you have:

    function thisismyurl_custom_content($content) {
    $before = "before";
    $after = "after";
    return $before.$content.$after;
    }
    add_filter('the_content','thisismyurl_custom_content','1');

    That should do what you want. Just place that code snippet in your functions.php file and you’ll be able to insert the text you need.

    Thanks for the tip! Unfortunately, I don’t know enough about Java coding to understand what the snippet is doing. So I wouldn’t really know what to change.

    Eddie Snipes
    http://www.eddiesnipes.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looking for a plugin to insert text’ is closed to new replies.