Category Archives: Wordpress

Add amazon product in Blog

In this post we will learn how to add any product in blog by using  account in Amazon. So its click earnings will go to my account. 🙂 I will tell you how you can make your own account. First … Continue reading

Posted in Amazon, Wordpress | Leave a comment

Cron Job in WordPress

Crony Cronjob Manager A Plugin for corn job A good link is to setup corn job is http://wpguru.co.uk/2009/02/how-to-setup-a-cron-job/ What does wp_cron() do? As you receive visitors on your site, WordPress checks your database to see if anything is scheduled to … Continue reading

Posted in Wordpress | Leave a comment

Add custom CSS and JS files in Thesis

function add_custom_javascript(){ ?> <script type=”text/javascript” src=”http://2kings4.stormer.net/wp-content/themes/thesis_182/custom/jquery.lavalamp.min.js”></script&gt; <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script&gt; <script type=”text/javascript” src=”http://2kings4.stormer.net/wp-content/themes/thesis_182/custom/custom.js”></script&gt; <link media=”screen, projection” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/custom/css/YOUR_ADDITION_STYLESHEET.css” rel=”stylesheet” /> <?php } add_action(‘wp_head’, ‘add_custom_javascript’);

Posted in Thesis, Wordpress | Leave a comment

diff backgrounds with diff categories

place this code in header <?php   if(is_category(7) || is_category(‘super-food’) || post_is_in_descendant_category( 7 )) { $body_bg = ‘http://frommotherearthtoyou.com/wp-content/uploads/super-food-bg3.jpg&#8217;; } elseif(is_category(1) || is_category(‘super-herbs’) || post_is_in_descendant_category( 1 )) { $body_bg = ‘http://frommotherearthtoyou.com/wp-content/uploads/super-herbs-bg.jpg&#8217;; } elseif(is_category(8) || is_category(‘super-minerals’) || post_is_in_descendant_category( 8 )) { $body_bg … Continue reading

Posted in Wordpress | Leave a comment

3 Ways to add Thumbnails to WordPress Posts

3 Ways to add Thumbnails to WordPress Posts

Posted in Wordpress | Leave a comment

Get the first image from the post

First, paste this function on your functions.php file. function catch_that_image() { global $post, $posts; $first_img = ”; ob_start(); ob_end_clean(); $output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = “/images/default.jpg”; } return $first_img; } Once … Continue reading

Posted in Wordpress | Leave a comment

PixPlugin Auto-Inserter Plugin

Inserts automatically generated pictures into all posts, using the PixPlugin service http://wordpress.org/extend/plugins/pixplugin-autoinsert/ If you want to control where you display pics then  deactivate above plugin. Manually add This code where you want images. And then add <img src=http://www.pixplugin.com/images/dashed-description/filename.jpg> ‘dashed-description’ is … Continue reading

Posted in plugins, Wordpress | Leave a comment