WordPress.org

Ready to get started?Download WordPress

Forums

Looking for a plugin to insert text (3 posts)

  1. gesnipes
    Member
    Posted 2 years ago #

    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?

  2. christopherross
    Member
    Posted 2 years ago #

    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.

  3. gesnipes
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic