Category Archives: Shortcode


Shortcode: Display Most Popular or Commented Posts

Putting some of your older posts in sidebar or on a homepage is a good approach not only for SEO of your blog but also offer interested content to your visitor. You may have hundreds of posts on your blog, you should be showing the ones that has been most popular among the visitors. This shortcode will let you list most commented posts (or any custom post type) from a single category or multiple categories.


Shortcode: Easily Add Breadcrumb

Links are one of the vital parts of a web layout and if you have a lot of them you got to add a navigation and breadcrumb system. So that at any particular article visitor know where he is in the site’s navigation layout and how he can find similar articles. This shortcode will automatically generate breadcrumb for all the posts, pages, categories and tags.

PayPal Buttons, Pay Now, Buy Now, Donate

Shortcode: PayPal Payment Buttons

PayPal has been most preferred method to buy and sale products, make and receive donations all over the world. If you want to sell few products in your website your will definitely wont prefer heavy duty e-commerce plugins. You would just need a small code where you can put in your product name and amount to charge. Following snippet will do just like that. It will allow you to receive donations and add products to PayPal cart. You can also set thank you page and your company log on PayPal checkout page.


Shortcode: Embed HTML5 audio

HTML5 coming with several new tags that make a developer’s life a lot easier. We do agree that It is not completely furnished yet. But, Some features are already implemented by some browsers (chrome and safari at least). One of those feature is the HTML5 audio. You do not need third party players to play your video which also increase the page load time. This snippet will add a shortcode so you can embedded your audios anywhere your want.


Shortcode: Twitter Bootstrap Collapse aka Accordian

Twitter Bootstrap is a decent, intuitive, and powerful front-end framework for faster and easier web development. Talking about WordPress primarily as CMS, we want to manage everything from the backend. But, Twitter Bootstrap’s components are not developed to be used from a WordPress backend. We will try to overcome this gap by implementing WordPress shortcodes for all of the Twitter bootstrap components. Let’s start with the Collapse

pinterest share

Shortcode: Add Pinterest “Pin it” button to your posts

Pinterest is a Virtual Pinboard. It lets you organize and share all the beautiful things you find on the web. People use pinboards to plan their weddings, decorate their homes, and organize their favorite recipes. This post will show you how you can let your visitors pin your posts to their Pinterest boards.

facebook share

Shortcode: Correct way of displaying a Facebook Share Button with or without counter

Earlier, I posted about “Correct way of displaying a Twitter Share Button with or without counter”. Now, almost the same thing but for Facebook. Similar to Twitter, it will not load the twitter javascript on every page of the site but only on the page where shortcode is used. It will load it at footer instead of middle or start of the contents which as a very awful approach as it effects the page load time.