Variable for email in posts instead of hardcoding it? (3 posts)

  1. bakert
    Posted 10 years ago #

    I would like to use a variable for my email address in posts/pages so that if it changes I don't have to go back through all my posts and change it, just change it in one place. Is that possible?

    Thanks very much, Tom

  2. James Huff
    Support Representative
    Posted 10 years ago #

    You could use this template tag and then you would only have to change the email in your author profile:


  3. bakert
    Posted 10 years ago #

    Thanks very much for having a look at this. This is exactly what I am looking for, only it doesn't work inside posts and pages. I want to be able to refer to myself /inside/ a post. That is, to use a variable inside a post. Any PHP I do in a post just prints out literally though. Is there any way to do this?

    Thanks again, Tom.

Topic Closed

This topic has been closed to new replies.

About this Topic