Categories: Tips & Tricks

Add a shortcode

This is a simple one.

/**
 * Your Blog title
 *
 */function my_blog_title() {
 $blogname = get_bloginfo('name');
    return '<span class="blog-title">' . $blogname . '</span>';
}     
add_shortcode('blog-title', 'my_blog_title');

Just add this to your functions.php file and then add [blog-title] in any post or page and it will return your Blog Title. :)

Web Master

Hi, I am Miguel, I bought this site in 2009. So I now run or manage the site. Please visit my new website or follow me on twitter @W3i.

Recent Posts

Beat Recession Blues with These PHP Web Development Best Practices

With the recession taking over the majority of economies across the globe, securing your job…

5 hours ago

The Best Christmas Apps for iPhone 5

The Christmas spirit is often one that takes a little while to get into, however,…

7 hours ago

5 Unique Business Card Designs Your Clients Will Love

Business cards are an excellent way to share your information, especially if you're self-employed. The…

19 hours ago

8 Content Ideas To Boost Your Real Estate Blog

When you have a real estate blog, sometimes it can be difficult to come up…

1 day ago

A Tweeter Guide to Branding Marketing Stars-Luminaries You Should Follow

When it comes to your business, marketing is extremely important. With the popularity of social…

2 days ago

Lost? Since You Can’t Trust Apple Maps, Check Out These 3 Apps Instead

Maybe you have the new software on your Apple device that has made headlines as…

2 days ago