» Posts
- Old Posts in WordPressBy Tony Tran on December 9th, 2009 | 2 Comments
For some jobs, you need to checking if that is new or old post with define day, you can using this code to check and complete your job well. This function will help you checking how many day that post was published and return result to you. Or you can copy from here : 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 + $... - Pinging Your Own Blog Posts? Good or Bad?By Tony Tran on October 4th, 2009 | No Comments
WordPress provides users to automatically ping other sites when you link to them using trackbacks. In addition to that you also have an option to allow others to send pingbacks to you. Linking back is always good, however WordPress displays these links using the nofollow attribute. So is it good to allow a nofollow linkback to your own website? Considering Googles new policy changes with regards to nofollow links, and how you might eventually lose ranking over it, adding an additional linkback to your own blog with a nofollow link definitely does not gauge well. On my another tech blog I use a... - Display Thumbnails For Related Posts in WordPressBy Tony Tran on August 27th, 2009 | No Comments
In this tutorial youll learn how to increase pageviews by adding thumbnails to related posts using the popular YARPP plugin and WordPress custom fields. The Goal Before we start, lets take a look at the result of what were building:The sample above comes from the theme of a new One Mighty Roar blog launching next Monday. As you can see, WordPress will place a thumbnail and title for each related post it finds. This will add some bonus attention to the posts, and hopefully generate additional pageviews. Sound good? Lets get started. Download the YARPP Plugin The basis for this tutorial is the... - How to Add Recent Posts Widget to BloggerIt’s the fact that Feedburner always helped the bloggers or webmasters with their variety of useful services like Free Email Subscription service, RSS reader, PingShot services, FeedFlare, SmartFeed and so on. This post explains how to add Recent(latest) Posts Widget to Blogger(blogspot) blogs using Feedburner’s BuzzBoost service.Do the following steps:Sign-in to your feedburner account and select your blog from My Feeds:Click Publicize tab from the top menu:Then select BuzzBoost from the left sidebar:Next you have to chose the number of recent posts you want to show, the...
- WordPress Recent Posts from Special CategoriesToday, WordPress have very much plugin can help you show up Recent Posts. But some plugins only give you recent post in all of your blog. What you need at here is get and show up recent posts for special categories you want. So, how can you do that ? As you know we use :<h2>Recent Posts</h2> <ul> <?php get_archives('postbypost', 6); ?> </ul>to show our recent posts. But how do we show recent posts from specific category ? To do this we use :<ul> <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the...
