• Resolved artcoder

    (@artcoder)


    Is there as plug in where the admin and define text content. For example, the copyright text is shown throughout the site. I want to be able to put showtext(“copyright”) in the template. And then the admin will be able to define the words (say “copyright 2007″) for that copyright text in the admin area. And the admin would have the ability to change that text to say ‘copyright 2008” whenever he/she wants.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter artcoder

    (@artcoder)

    I created a plugin that adds an option “copyrighttext” with the statement….

    add_option("copyrighttext", "copyright 2008", "copyright text", "yes");

    And I can see this option in wp-admin/options.php

    But when I do …

    <?php get_option("disclaimertext"); ?>

    in my footer.php template. Nothing is returned.

    Thread Starter artcoder

    (@artcoder)

    I figured it out. There should be an “echo” in this line…

    <?php echo get_option("disclaimertext"); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘define text constants in admin’ is closed to new replies.