Fresh News - Blog Design, Wordpress, Blogger, and Web Development

Magznetwork Fresh News aggregate our favorite blogs to watch our favorite topics about blog design, wordpress themes, and blogger templates.

WordPress hack : How to display ads on old posts only

To achieve this recipe, simply open your functions.php file and paste the following code in it: function is_old_post($post_id=null){ $days = 15; global $wp_query; if(is_single() || is_page()) { if(!$post_id) { $post_id = $wp_query-> post-> ID; } $current_date = time(); $offset = $days *60*60*24; $post_id = get_post($post_id); $post_date = mysql2date(‘U’,$post_id-> post_date); $cunning_math = $post_date + $offset; $test = $current_date – $cunning_math; if($test > 0){ $return = true; }else{ $return = false; } }else{ $return = false; } return $return; } Once done, you are now ready to call the functions in your single.php template as shown below: INSERT AD CODE HERE That’s all, you’re done.

Perform Better With Google AdSense: The Ultimate Round-Up

  Google AdSense is the easiest and quickest way to make your website, of any size, profitable. Sign-up, generate your ads and copy & paste the code into your web page, and…well, that’s it really

100% Google AdSense: Tools, Tips and Resources

By Glen Stansberry and Smashing Magazine Editorial Team Google AdSense is a simple and low-risk way for publishers to quickly monetize their content. The pay-per-click ad system has created an opportunity for anyone to instantly have advertising on their website, without the hassle of having to actively sell ad space. AdSense makes up a good portion of the advertising revenue for many websites, and other websites may use AdSense to earn the bulk of their revenues.

FeedBurner is Dead, Long Live Feedburner

So for some reason that I can no longer remember, I had to log into FeedBurner to do something.