The MU forums have moved to WordPress.org

Display blogname in Article with a Variable (4 posts)

  1. dsamorano
    Member
    Posted 14 years ago #

    I have a article that I want to have wordpress replace a variable with site name every time it is published.

    Welcome to %variable% blog, we look forward to serving you anytime.

  2. dsamorano
    Member
    Posted 14 years ago #

    <?php bloginfo('name'); ?> if i can get tis variable to show it will do the trick

  3. andrea_r
    Moderator
    Posted 14 years ago #

    You can't put php into posts.

  4. tmoorewp
    Member
    Posted 14 years ago #

    Build a plugin with a shortcode. Search for the shortcode API documentation on the WordPress Codex.

About this Topic

  • Started 14 years ago by dsamorano
  • Latest reply from tmoorewp