Tips & Tricks
Tips and Tricks about Wordpress and Blogs in general. Link Building Tips, Tips to promote your blog, Tips to become a better blogger, How-to’s, How to make money, 10 tips to…, How To, How to about wordpress, How to install themes, How to install plugins, how to write a better article.
By Santiago on April 1, 2009
function donate_shortcode( $atts ) { extract(shortcode_atts(array( ‘text’ => ‘Make a donation’, ‘account’ => ‘REPLACE ME’, ‘for’ => ”, ), $atts)); global $post; if (!$for) $for = str_replace(” “,”+”,$post->post_title); return ‘<a class=”donateLink” href=”https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=’.$account.’&item_name=Donation+for+’.$for.’”>’.$text.’</a>’; } add_shortcode(‘donate’, ‘donate_shortcode’); Replace the default ‘account’ with your paypal email address, and output using [donate]. Remember you can override the default ‘text’ [...]
Posted in Tips & Tricks | Tagged Code, How To, Snippet |
By Santiago on March 30, 2009
‘Shortcodes’ are a feature of wordpress used for executing custom functions by inserting a small snippit of code into a post.
Posted in Tips & Tricks | Tagged Adsense, How To, Shortcode |
By Santiago on March 27, 2009
Displaying related posts is a very great way to help visitors staying longer on your blog. You can use a plugin, but you also can use tags and a custom code to show related posts. Let’s see how to do!
Posted in Tips & Tricks | Tagged How To, Plugin, Post, The Loop |
By Santiago on March 27, 2009
You can easily add thumbnails, lead image, and other extras to individual posts in WordPress. These images can be shown on the front page, archives, search pages, etc – but appear outside of the content, giving you full control of their placement and style. What Are Custom Fields? If you’re reading through this article, there’s [...]
Posted in Tips & Tricks | Tagged Code, Custom Fields, How To, Posts, Thumbnails |
By Santiago on March 22, 2009
A useful code snippet that displays how many posts you’ve made.
Posted in Tips & Tricks | Tagged Code, How To, Posts, Snippet |