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

Review: WP-DBManager

This powerful plugin is a must-have for WordPress users. With WP-DBManager you can manage your…

3 hours ago

Welcome

Hello, welcome to a new WordPress community site. Join the ever growing and oh so…

9 hours ago

Top Membership plugins

Membership plugins/scripts for WordPress paid and free we will review them here today. Ultimate Membership…

21 hours ago

The Top 10 Best Free Android Retro Games of all time

Retro games are games that usually refer to 80's and early 90's games that have…

1 day ago

Guest Blogging Do’s and Don’ts

In the world of Penguin, link building has become a sophisticated science. Getting links to…

2 days ago

Four Tips For Beginner Website Designers

Web design is a skill that many people claim to have, but few actually know…

2 days ago